Simple equations, like Y = 5+7*X, provide a single, continuously-varying method for calculating a value for an element from the value(s) for one or more other elements. Often, however, the expression we want to use for calculating the result depends on the values of one or more aspects of the system. This means that we need a way, in a single equation, for choosing between alternative expressions. Conditional expressions provide a means for doing this.
In general terms, a simple equation has the form:
Y = expression.
A conditional equation has the form:
Y = if condition1 then expression1 else expression2
Y = if condition1 then expression1 elseif condition2 then expression2 elseif expression3 then condition3 ...... else expressionx
where:
In: Contents >> Working with equations >> Components of an equation