IF/ELSE Compare, Is Calculated Field Greater than Zero…
-
Hi there – I spent the day yesterday browsing the forum and experimenting, but can’t seem to properly solve my need.
I’m calculating the difference between two fields (that part works great), but then if the result is greater than zero I’d like to also display the word “INCREASE” otherwise display “DECREASE”
Here’s my calculated field by itself:
[calc][field current_observation_value]-[field prior_observation_value][/calc]
(the result is 7.918)And here’s where I tried also do the compare:
[set dif][calc][field current_observation_value]-[field prior_observation_value][/calc][/set] [get dif] <br> [pass field=dif] [if pass={dif} compare=more value=0] INCREASE [else] DECREASE [/if] [/pass]
(I get the else result every time)
Any help you could provide would be appreciated! Thanks!
Viewing 10 replies - 1 through 10 (of 10 total)
Viewing 10 replies - 1 through 10 (of 10 total)
- The topic ‘IF/ELSE Compare, Is Calculated Field Greater than Zero…’ is closed to new replies.