TRUE INDEX

TRUE

Any value of the boolean part of a logical expression which is neither nil nor 0 is considered as true. Mos t builtin test and compare functions return t for true and nil for false.

examples:


if member(3,{1,2,3}) then 1 else -1;


  1


if floor(1.7) then 1 else -1; 

  1 


if floor(0.7) then 1 else -1; 

  -1