Use Expression to Calculate Max

Hey! I’m trying to calculate the max between two different expressions, something like max(Expression A, Expression B). I’m not sure how to do this using the current capabilities. Is there a way to incorporate “:max” to calculate this? Any suggestions are appreciated! Thank you!

You’re writing “Expression A, Expression B”: are you using the Toolbox plugin? If yes, why don’t you create an Expression C element and set a conditional like ExpressionA value > ExpressionB value then set Expression C to ExpressionA value.

If you’re not using the Toolbox plugin, you could probably achieve that conditional with an Input element.

You could create two steps in your workflow with conditions. Clunky but works.

If a > b
Prop = a

If a < b
Prop = b

This worked using conditionals. Thank you!

This topic was automatically closed after 70 days. New replies are no longer allowed.