Calculation as a comparison in a precondition
- Last Updated: June 9, 2021
- 1 minute read
- Corticon
- Version 7.2
- Documentation
In the following figure, a numeric calculation is used as a comparison in the filters section of the Rulesheet:
The LHS of the expression calculates the average pressure
exerted by the total cargo load on the floor of the aircraft (sum of the cargo weights
divided by the sum of the cargo containers' footprints). This result is compared to the
RHS, which is the literal value 5. You might expect
to see this type of calculation in a set of rules that deals with special cargos where a
lot of weight is concentrated in a small area. This might, for example, require the use of
special aircraft with sturdy, reinforced cargo bay floors. Such a Filter expression might
be the first step in handling cargos that satisfy this special criterion.