Hi,
I am using radial and I am experiencing a very odd behavior, consider the following workflow:
define or_condition
echo 'start ${f:node.host_id}'
sequence if: '${f:node.host_id} is not set'
echo 'is not set'
sequence if: '${f:node.host_id} is set'
echo 'is set'
sequence if: '${f:node.host_id} == ${f:
node.id}'
echo '=='
sequence if: '${f:node.host_id} is not set or ${f:node.host_id} == ${f:
node.id}'
echo 'or'
the field which is set is 'node' which is a map that contains only 'id' property:
I get the following output:
I do not get the 'echo or' part which doesn't make sense as I do get the 'is not set' output in the 1st condition.
This means that the 1st condition is met, as expected, but the 4th condition is not met even though it is an or statement between condition 1 and 2.
I tried adding brackets to each of the condition in the or statement but it didn't help.
I also tried converting the or into and and not (using demorgan transformation logic) and it didn't help.
I can try nested if but I wish to avoid this workarounds and understand why this doesn't work as expected.
Please advise.
Thanks