Boolean Variables

Aug 11, 2009 at 8:34 PM

Hello,

I have a situation where we create variables and equations in the admin section and variables will be set with the values when new proposal is created.

 For Eg: GEN1,GEN2,GEN3... will be created as boolean type and GEN4 = IF(GEN1=TRUE,1,2).

As equations cannot be compiled with null values , I was setting  boolean null variables with string "BOOL". GEN1=\"BOOL\",GEN2=\"BOOL\" and integers with 0. For integers I dont see any problem

 but for booleans when I use them in the equations like GEN4 = IF(GEN1=TRUE,1,2) its giving exception as string cannot be compared with boolean.

Do you have any solution to solve the problem?

 

Aug 14, 2009 at 3:31 PM

try GEN4 = IF(GEN1==TRUE,1,2).