[X] $eql failure


#1

$eql fails to output true when expected even though its result is interpreted as expected by $if.

Help says: returns true, if x equals y.
but from "$eql(1,1)" expected "true", got "".
From "$if($eql(1,1),true,false)" expected "true", got "true".

That from the following Export script:

Help says: $eql(x,y) returns true, if x equals y.
but from "$eql(1,1)" expected "true", got "".
From "$if($eql(1,1),true,false)" expected "true", got "true".

Clarification needed on scripting functions and types
#2

The help doesn't say anything about how true manifests itself.

It's not a bug.


#3

The help doesn't say anything about how anything manifests itself! :wink: So I assumed true, like numbers and strings, manifests itself as itself.

It's not a bug.

OK!

Workaround for this non-bug: $if($eql(1,1),true,false) outputs true.


#4

Hmm ...

$if2($eql(1,1),0)

simply returns nothing for itself (but an imaginary invisible value of trueness), but that can't be true, because help files says that $if2 returns the value of the first parameter, if it is 'true'.

Those boolean functions should always return manifest values like 0 for false and 1 for true to allow mathematical calculations and so on.

DD.20071126.2346.CET