yes.
you are comparing integer and string and their vartype does not mach.
this means that kix converts the last variable to same vartype as the first one and if you do val($string) it returns 0!kind of weird. you can test this by setting the if statement from:
IF $var=$string
to:
IF $string=$var
and it returns untrue. in this case the first one is string and the integer is translated to string and as string 0 is 0.
if you need to match different type of variables and assure they are compared correctly you can use string type conversion:
IF "$string"="$var"
returns untrue like also:
IF "$var"="$string"
confused?
cheers,
_________________________
!download
KiXnet