$eql number problem


#1

Anyone know why

$if($eql(0,$num(0,2)),Y,N)

prints N, not Y?

A workaround is

$if($eql(0,$add(0,$num(0,2))),Y,N)


#2

Anyone know why $if($eql(0,$num(0,2)),Y,N) prints N, not Y?
$if($eql($num(0,2),$num(0,2)),Y,N) prints Y


#3

And $if($eql($num(0,1),$num(0,2)),Y,N) prints N.


#4

0 and 00 is not the same string


#5

Sounds like a proper numeric compare is needed.