I just realized something. Since we’re using Variable Expressions already, and that Variable Expressions does not point directly to a variable, but rather retrieves the values of a variable via the variable() function, we can do all the if operations in the Variable Expressions directly without any issue.
The workflow becomes as simple as this:
As usual, I create 2 scenarios:
And we get the same results as before - we’re using the same logic, just doing everything via the Variable Expressions.
First scenario:
Second scenario:
Here’s the new workflow: If variable exists then use it else use NA.knwf (12.8 KB)