mIRC Home    About    Download    Register    News    Help

Print Thread
If commands in one line? #249905
22/12/14 02:02 PM
22/12/14 02:02 PM
Joined: Aug 2014
Posts: 42
K
Krawalli Offline OP
Ameglian cow
Krawalli  Offline OP
Ameglian cow
K

Joined: Aug 2014
Posts: 42
Hey,
for example i have this if commands:

if ($nick !isop #) { return }
if ($2 != $null) { return }
if ($2 isalnum) { return }

Is it poossible to bring all this in one line with one result: { return } ?

Re: If commands in one line? [Re: Krawalli] #249906
22/12/14 02:18 PM
22/12/14 02:18 PM
Joined: Dec 2014
Posts: 23
S
SBDOnslaught Offline
Ameglian cow
SBDOnslaught  Offline
Ameglian cow
S

Joined: Dec 2014
Posts: 23
Euh have you tried or statements?

I'm fairly new at mirc myself but you can try this
Quote:

if ($nick !isop # || $2 != $null || $2 isalnum ) { return }


if that doesn't work, try
Quote:

if (($nick !isop #) || ($2 != $null) || ($2 isalnum)) { return }

and if that doesn't work, well im all out of ideas. :P