Expression evaluation quality
- Last UpdatedNov 04, 2024
- 1 minute read
Expression evaluation for raw reason codes follows the System Platform scripting evaluation logic in terms of quality of expression references. Expression references are considered to be the individual reference values.
When attempting to determine raw reason code evaluated values and its quality for an expression, the following rules apply:
-
If the quality of all expression references is Good, then the expression evaluates True or False depending on the outcome of the Boolean logic, and the expression Quality evaluates Good.
-
If the quality of all expression references is Bad, then the expression quality evaluates Bad.
-
If all expression references with Good quality evaluate properly and at least one expression reference has Bad quality, the expression quality evaluates Bad. This is because those references with Good quality evaluate properly, and there is no way to verify whether the final references evaluate properly as well because their quality is Bad.
-
If at least one expression reference with Good quality evaluates False, it does not matter what the quality or value of the rest of the expression reference is; the expression will evaluate False with Good quality. This is because if at least one expression with Good quality evaluates False, the expression as a whole will evaluate False, so the quality on the remaining expression references are ignored.
If an expression’s quality evaluates Bad, the UCO will:
-
Go into an error state if ResumeOnError = False.
-
Skip the expression and treat it as if it evaluates False if ResumeOnError = True.