AnsweredAssumed Answered

Correct syntax for evaluating integers in If statements

Question asked by rowright on Sep 12, 2019
Latest reply on Sep 16, 2019 by dougbrowning

Greetings,

I am trying calculating a field based on an If statement: if(selected(${section},'>=1'),${town},${permit_area}). However, this does not appear to be working because it always produces the false response (${permit_area}). If I do this: if(selected(${section},'1'),${town},${permit_area}) and set ${section} to 1, it produces the true response (${town}. I'm assuming it's a syntax error in the former and I've tried everything I can think of. I do not get error messages with either of these approaches. The evaluation attribute (${section}) is integer. I have tried it with the field I am trying to calculate defined as string and with no definition. Any help would be greatly appreciated.

 

Bob

Outcomes