Windchill Risk and Reliability Desktop Help > Overview > Functions > Calculating > Calculation File How-Tos > Constructing the Equation for a Conditional Calculation
Constructing the Equation for a Conditional Calculation
A conditional calculation is one in which results are based on a specified condition. To describe the condition, you might say:
If Condition is true, then do A, else do B
For example, to select Chargeable? if the value for Risk Value is above 25, you might say:
If Risk Value is greater than 25, then return true, else return false.
In the Calculation Editor pane, the syntax for performing conditional calculation uses the If/Then/Else operator, which is expressed using the question mark and colon symbols:
Condition ? A : B
To perform the conditional calculation described above, you can directly enter the appropriate syntax in the calculation. For the above example, the syntax you enter is:
Risk(Incidents) > 25 ? 1 : 0