mIRC Home    About    Download    Register    News    Help

Print Thread
#42600 17/08/03 11:04 PM
Joined: Jul 2003
Posts: 132
O
Vogon poet
OP Offline
Vogon poet
O
Joined: Jul 2003
Posts: 132
i have some code in popups like this

.StartSomething: {
/unset %var1
/set %var1 $?="Enter something:"
/autorun
}

and then it goes on remote script

so this $? dialog box has 2 states

1. enter something, press OK and you will recive true or false
as result
2. press cancel and it will halt

but in my case when i press cancel it again goes on remote but it does something on itz own, so i am asking how can i make in that little script when i press cancel that it HALTS !

??????

#42601 17/08/03 11:10 PM
Joined: Jan 2003
Posts: 3,012
Hoopy frood
Offline
Hoopy frood
Joined: Jan 2003
Posts: 3,012
use double $$ in the $?

$$ means "do not continue unless filled with a value" meaning if there is no input, it wont continue. >:D This goes for all identifiers. ($$?!, $$1, etc)


-KingTomato
#42602 17/08/03 11:13 PM
Joined: Jul 2003
Posts: 132
O
Vogon poet
OP Offline
Vogon poet
O
Joined: Jul 2003
Posts: 132
oh, i see, you know i always wondered whatz the difference between $? and $$? hehehe, thanx much smile

#42603 17/08/03 11:22 PM
Joined: Jan 2003
Posts: 3,012
Hoopy frood
Offline
Hoopy frood
Joined: Jan 2003
Posts: 3,012
np.


-KingTomato

Link Copied to Clipboard