mIRC Home    About    Download    Register    News    Help

Print Thread
#213723 07/07/09 08:24 AM
Joined: Aug 2006
Posts: 182
T
Thrull Offline OP
Vogon poet
OP Offline
Vogon poet
T
Joined: Aug 2006
Posts: 182
Code:
Alias ert {
  if $1 = $2 { echo -ag Works }
  else { echo -ag Fails }
}


Tested...
1 1 Works (Correct)
1 2 Fails (Correct)
Y Y Works (Correct)
Y y Works (Correct)
2 $calc(1+1) Fails (Incorrect)
Thrull $me Fails (Incorrect (My nick is currently 'Thrull'))

Anyway, you get the idea. Now, using "=" isn't documented within the help files, but it can be used for something. I'm just not sure what that something IS. Is it literal text? Something else? Could someone fill me in, please?

Thanks ^^

Thrull #213725 07/07/09 09:54 AM
Joined: Jul 2006
Posts: 4,020
W
Hoopy frood
Offline
Hoopy frood
W
Joined: Jul 2006
Posts: 4,020
Any of your exemple works, I don't know how you're testing.
'=' is the same as '==', use it if you want to, but that's not a good habit


#mircscripting @ irc.swiftirc.net == the best mIRC help channel
Thrull #213726 07/07/09 10:36 AM
Joined: Jan 2003
Posts: 2,125
Q
Hoopy frood
Offline
Hoopy frood
Q
Joined: Jan 2003
Posts: 2,125
My guess is that you're typing /ert Thrull $me in an editbox, ie you're using a single slash. If that's so, try with a double slash.

qwerty #213751 08/07/09 03:27 AM
Joined: Aug 2006
Posts: 182
T
Thrull Offline OP
Vogon poet
OP Offline
Vogon poet
T
Joined: Aug 2006
Posts: 182
blush Oops. Yes, no double slash.


Link Copied to Clipboard