IIF always returns the second parameter
as the expression in IIF always returns 0
In the sample program EXPTEST.CPP the expression
IIF returns F for BOTH expressions (TEST->FLOAT1 = 5)
e->TestExpression( "IIF( \"TEST->FLOAT1>0\", \"T\",
\"F\" )", "T" );
e->TestExpression( "IIF( \"TEST->FLOAT1<=0\", \"T\",
\"F\" )", "F" );
although the return values for
e->TestExpression( "TEST->FLOAT1 < 1", (xbDouble) 0 );
e->TestExpression( "TEST->FLOAT1 > 1", (xbDouble) 1 );
are OK.
p1->NodeText is "TEST->FLOAT1>0", "T", "F" )"
p1->IntResult = 0
what means "TEST->FLOAT1>0" is NOT correct
evaluated.