The MONAI Workflow Manager Workflow spec can have conditional statements this is further documentation around conditional statements.
Examples:
'F' == 'F'
= true
'F' == 'B'
= false
Examples:
'5' > '1'
= true
'5' > '1'
= false
'5' >= '5'
= true
'5' > 'lucy'
= will cause an error comparing value that isn't a number
Examples:
'1' < '5'
= true
'1' < '5'
= false
'5' <= '5'
= true
'5' < 'lucy'
= will cause an error comparing value that isn't a number
Examples:
'F' != 'F'
= false
'F' != 'B'
= true
Examples:
The AND/OR Operator allows joining multiple statements together
'1' < '5' OR 'F' == 'B'
= Left hand side of the OR statement evaluates to true so result will be true
'1' < '5' AND 'F' == 'B'
= Right hand side of the AND statement evaluators to false so both sides of AND statement are false and overall statement is false.
This can be used with brackets also for logical priority...
"('TRUE' == 'TRUE' OR 'TRUE' == 'TRUE' OR 'TRUE' == 'TRUE') OR ('TRUE' == 'TRUE' OR 'TRUE' == 'TRUE')" = this statement will equal true.
Examples:
'lillie' CONTAINS [“jack”, “lillie”, “neil”]
= true
[“jack”, “lillie”, “neil”] contains 'lillie'
= true
[“jack”, “lucy”, “neil”] contains 'lillie'
= false
The item array can be contained on either side of the conditional.
Examples:
'lillie' NOT_CONTAINS [“jack”, “lillie”, “neil”]
= false
[“jack”, “lillie”, “neil”] not_contains 'lillie'
= true
[“jack”, “lucy”, “neil”] contains 'lillie'
= false
The item array can be contained on either side of the conditional.