[Gambas-user] Eval Gambas2
Ron
ron at ...1740...
Wed Jan 5 09:36:05 CET 2011
Hi,
I'm trying to implement some sort of basic scripting with the use of
Eval() inside my project.
It works for a lot of math, formatting and comparison commands and works
quite nicely.
But I need the IF THEN to work too.
IIf ( Test AS Boolean , TrueExpression , FalseExpression ,
FalseExpression ) or
If ( Test AS Boolean , TrueExpression , FalseExpression )
Works, but evaluates both TrueExpression and FalseExpression regardless
of test (as explained in docs)
Is there a way to get
IF Test THEN TrueExpression
to work inside Eval() ?
Regards,
Ron_2nd.
More information about the User
mailing list