mIRC Home    About    Download    Register    News    Help

Print Thread
Joined: Jan 2006
Posts: 8
D
Nutrimatic drinks dispenser
OP Offline
Nutrimatic drinks dispenser
D
Joined: Jan 2006
Posts: 8
/alias tt if ( a != b && c != d ) echo -a $ifmatch
/tt
return 'a'
/alias tt if ( a != b && c != d ) { echo -a $ifmatch }
return 'c'

Why? v6.32


Sorry for my english
Joined: Aug 2004
Posts: 7,252
R
Hoopy frood
Offline
Hoopy frood
R
Joined: Aug 2004
Posts: 7,252
hmm.. interesting find, and since the two codes are almost identical, the difference being the extra braces, to my thinking they both should've returned the same thing.

This might be better located in the bug reports section, as that's what it looks like to me.

Joined: Jan 2006
Posts: 8
D
Nutrimatic drinks dispenser
OP Offline
Nutrimatic drinks dispenser
D
Joined: Jan 2006
Posts: 8
Hm you are right it can be a bug smirk


Sorry for my english
Joined: Jun 2008
Posts: 48
T
Ameglian cow
Offline
Ameglian cow
T
Joined: Jun 2008
Posts: 48
I tried the first thing that came to mind and also found that...
/alias tt if (a != b) && (c != d ) echo -a $ifmatch
Also returns c .
Very interesting find.
Btw, Im still running 6.3 so this isnt specific to 6.32

Last edited by Typos; 03/07/08 01:43 PM.

I've gone to look for myself. If I should return before I get back, please keep me here.
Joined: Dec 2002
Posts: 2,031
R
Hoopy frood
Offline
Hoopy frood
R
Joined: Dec 2002
Posts: 2,031

When formatted correctly, it returned c for me also in 6.32.

Joined: Jan 2006
Posts: 8
D
Nutrimatic drinks dispenser
OP Offline
Nutrimatic drinks dispenser
D
Joined: Jan 2006
Posts: 8
tt if a != b && c != d { echo -a $ifmatch }
return 'c'
tt if a != b && c != d echo -a $ifmatch
return 'a'

I think is only occur when an alias use "too few" brackets.
Exist a method to get the first $ifmatch/$v1 of different comparison?


Sorry for my english

Link Copied to Clipboard