IF Statement Evaluation in Rules
Posted: Thu Feb 08, 2024 9:53 pm
Examine the example rule below:
There are two conditions to be evaluated. If the first condition evaluates FALSE, does the second condition get tested or does the processor bail out?
I'm asking because I'm stuck tracking down circular references. Some rules fit this example where it was assumed the processor bails out the moment a FALSE is evaluated. If the processor evaluates the ENTIRE conditional line, I'll need to rethink these rules.
Code: Select all
[ 'Output Value' ] = N:
IF ( DB ( 'ExampleCubeA' , 'ExampleElementA' ) = 0
% DB ( 'ExampleCubeB' , 'ExampleElementB' ) = 0
, 0
, CONTINUE
) ;
I'm asking because I'm stuck tracking down circular references. Some rules fit this example where it was assumed the processor bails out the moment a FALSE is evaluated. If the processor evaluates the ENTIRE conditional line, I'll need to rethink these rules.