Conditional statement in expression tag

I am trying to choose between values in an expression tag. Previously i have just created intermediate memory tags for this but from reading the manual this should be possible all in one step.
I tag errors even when i use the actual value1.value

if {[.]value1} < {[.]…/value2}:
{[.]value1}+{[.]…/value2}
else:
{[.]…/value1}

Any help is appreciated.
Thanks!

https://docs.inductiveautomation.com/display/DOC79/if

So, something like this: if({[.]value1} < {[.]../value2}, {[.]value1}+{[.]../value2}, {[.]../value1})

1 Like

Great Thanks! works perfectly