Problem using "if" statements in Math Formula node

Hello,

I keep getting an error when trying to create if statements in the math formula node.  For example, when I process if($ZScore$=0,1 ,2 ), where ZScore is a column with numerical values, I get an error: "Invalid Settings: Unable to parse m_expression; Syntax error (assignment not enabled)".

Am I using the if() function incorrectly?  I'd appreciate any help on this.

Thanks,

Kevin

The expression $ZScore$=0 must not need to be an assignment, you have to change it to $ZScore$==0 which is a simple comparison.

3 Likes

Gabriel - Many thanks, that did the trick!