mIRC Home    About    Download    Register    News    Help

Print Thread
#74095 06/03/04 06:57 PM
Joined: Dec 2002
Posts: 17
KyD Offline OP
Pikka bird
OP Offline
Pikka bird
Joined: Dec 2002
Posts: 17
somehow mirc 6.14 differs between
$addtok($null,c,44)
which returns 'c'
and
$addtok($null,$iif(b,c,d),44)
which returns '$null,c'
while they should return the same...
tested on win xp.

#74096 07/03/04 01:30 AM
Joined: Sep 2003
Posts: 4,230
D
Hoopy frood
Offline
Hoopy frood
D
Joined: Sep 2003
Posts: 4,230
thats not an addtok bug error its a pharsing error.

Give the pharser a break and add some spaces.
$addtok($null, $iif(b, c, d), 44)

* Minimally add a space before after the last arg in $iif *

I always put a space after the comma it seems to make it much easier for it.


#74097 07/03/04 07:07 PM
Joined: Feb 2003
Posts: 810
C
Hoopy frood
Offline
Hoopy frood
C
Joined: Feb 2003
Posts: 810
That's an interesting bug.. I could never guess it was the parser.


* cold edits his posts 24/7

Link Copied to Clipboard