The IIF1) function returns one of two values depending on the value of a Boolean expression. If the true condition results, then expression1 is evaluated to the result; if the false condition results, then expression2 is evaluated to the result.
Only one of the expressions expression1 and expression2 is ever evaluated.
IIF('Condition', 'Expression1', 'Expression2')
IIF(@wgr>10, 1, 15)
This example shows how to save a lot of work by correctly using the iif function. \
As you can see here you can avoid 2 rulesets together. \