mIRC Home    About    Download    Register    News    Help

Print Thread
#12642 23/02/03 12:45 PM
Joined: Feb 2003
Posts: 37
D
druiddk Offline OP
Ameglian cow
OP Offline
Ameglian cow
D
Joined: Feb 2003
Posts: 37
Hey! :-)

I cant find any examples in the documentation of how to make an if and then statement but heres what i figured (which of course doesnt work, argh!):
Code:
if (%test == no) and ($chan == #channel) { echo -s ARGH thats no good! | halt }



Is the trick just to make a normal if and then make another if inside the first ?!

#12643 23/02/03 01:21 PM
Joined: Dec 2002
Posts: 40
C
Ameglian cow
Offline
Ameglian cow
C
Joined: Dec 2002
Posts: 40
Code:
if (%test == no) && ($chan == #Channel) { echo -s ARGH thats no good! | halt }


there ya go :tongue:

Coca-Bear

#12644 23/02/03 02:04 PM
Joined: Feb 2003
Posts: 37
D
druiddk Offline OP
Ameglian cow
OP Offline
Ameglian cow
D
Joined: Feb 2003
Posts: 37

Ahh! :-)

Khaled really should put that in the documentation - its not clear the way it is now (Perhaps just an example?).

Thanks mate! :P

#12645 23/02/03 03:04 PM
Joined: Dec 2002
Posts: 395
M
Fjord artisan
Offline
Fjord artisan
M
Joined: Dec 2002
Posts: 395
/help if-then-else
It's explained there, in "Combining comparisons" smirk


Link Copied to Clipboard