mIRC Home    About    Download    Register    News    Help

Print Thread
$true/$false #1922 15/12/02 04:25 PM
Joined: Dec 2002
Posts: 477
Deep3D Offline OP
Fjord artisan
OP Offline
Fjord artisan
Joined: Dec 2002
Posts: 477
/dag {
//echo $?!="Shall I continue?"
if $1 == $true {
/echo -a Dag
}
if $1 == $false {
/echo -a nAtt
}
}

How to get it to work? i don't get the $true/$false thing!?! confused

Re: $true/$false #1923 15/12/02 04:33 PM
Joined: Dec 2002
Posts: 7
L
l337 Offline
Nutrimatic drinks dispenser
Offline
Nutrimatic drinks dispenser
L
Joined: Dec 2002
Posts: 7
Test this one


alias dag {
var %a = $?!="Shall I continue?"
if (%a) {
echo -a Dag
}
else {
echo -a nAtt
}
}

Re: $true/$false #1924 15/12/02 04:35 PM
Joined: Dec 2002
Posts: 477
Deep3D Offline OP
Fjord artisan
OP Offline
Fjord artisan
Joined: Dec 2002
Posts: 477
hey hey.. it works!! grin thanks..

Re: $true/$false #1925 15/12/02 04:44 PM
Joined: Dec 2002
Posts: 164
M
Merlin Offline
Vogon poet
Offline
Vogon poet
M
Joined: Dec 2002
Posts: 164
Another solution using $input
Code:
 
alias dag {
  IF ($input(Shall I continue?,296,Shall I continue?,C) == $yes) {  /echo -a Dag }
  ELSE { echo -a nAtt }
}
 


DALnet: #HelpDesk, #mIRC, #MISHScript - Undernet: #mIRC, #mIRC-Scripts
Re: $true/$false #1926 15/12/02 04:50 PM
Joined: Dec 2002
Posts: 7
L
l337 Offline
Nutrimatic drinks dispenser
Offline
Nutrimatic drinks dispenser
L
Joined: Dec 2002
Posts: 7
glad to help ya smile

Re: $true/$false #1927 15/12/02 05:04 PM
Joined: Dec 2002
Posts: 477
Deep3D Offline OP
Fjord artisan
OP Offline
Fjord artisan
Joined: Dec 2002
Posts: 477
wink i have one more thing..

in the popups..

.Password ( $+ %cspass $+ ):/set %cspass $?*="Enter CService Password:"

how to show the %cspass whit ******** insted of "password"

Re: $true/$false #1928 15/12/02 05:13 PM
Joined: Dec 2002
Posts: 18
W
watcher Offline
Pikka bird
Offline
Pikka bird
W
Joined: Dec 2002
Posts: 18
.Password ( $+ $str(*,$len(%cspass)) $+ ):/set %cspass $?*="Enter CService Password:"

:tongue: ?


-watcher
Re: $true/$false #1929 15/12/02 05:15 PM
Joined: Dec 2002
Posts: 477
Deep3D Offline OP
Fjord artisan
OP Offline
Fjord artisan
Joined: Dec 2002
Posts: 477
that also works.. thanks.. smirk