skip to main content
Corticon Studio: Rule Modeling Guide : Rules containing calculations and equations : Supported uses of calculation expressions : Calculation as an assignment in an action
 

Try Corticon Now
Calculation as an assignment in an action
Figure 142. A Calculation in an Action Expression
This figure shows two rules that each make an assignment to maxFuel, depending on the type of aircraft. In rule 1, the maxFuel load for 747s is derived by subtracting maxCargoWeight and emptyWeight from grossWeight. In rule 2, maxFuel for DC-10s is simply assigned the literal value 100,000.