mIRC Home    About    Download    Register    News    Help

Print Thread
#86086 09/06/04 01:22 PM
Joined: Apr 2004
Posts: 871
Sat Offline OP
Hoopy frood
OP Offline
Hoopy frood
Joined: Apr 2004
Posts: 871
It seems like $result doesn't work from within an $iif-condition. This piece of example code shows the problem:
Code:
alias bar return test
alias foo {
  bar
  echo -ag $iif($result == test,$result == test,$result != test)
  if ($result == test) echo -ag $result == test
}

The result of calling /foo:
Code:
test != test
test == test

This is on mIRC 6.15, I haven't tested it on older versions.


Saturn, QuakeNet staff
#86087 10/06/04 08:56 PM
Joined: Oct 2003
Posts: 313
S
Fjord artisan
Offline
Fjord artisan
S
Joined: Oct 2003
Posts: 313
That snippet gives me the same results as you on both 6.14 and 6.15.


Sais
#86088 11/06/04 09:27 AM
Joined: Dec 2002
Posts: 5,420
Hoopy frood
Offline
Hoopy frood
Joined: Dec 2002
Posts: 5,420
This has been fixed for the next version.


Link Copied to Clipboard