Using a Boolean Attribute in a Calculated Indicator Using a Boolean attribute in a calculation is the same as using an enumerated attribute. The only difference is that Boolean attributes can only have two values (that is, True or False). In this example, the value of a numeric indicator is calculated based on the setting of a boolean attribute. If the Boolean’s value is True, then the value of the calculated indicator is determined by adding together the value of Input 2 and Input3. Otherwise, the indicator’s value is equal to what it is presently (that is, Input4). The calculation has the four following inputs: • BooleanInput is defined as a reading-based input. The attribute used to derive the value of this input is a Boolean attribute (called “Has an alarm”) on the Indicator that the input refers to. • Input2 is a traditional numeric input • Input3 is a traditional numeric input • Input4 represents the current value of the indicator being calculated For example: VB.NET ’if the “Has an alarm” Boolean is True calculate a value, otherwise don’t If Input1 = True Then Return Input2 + Input3 Else Return Input4 ’Input4 is the current value End If C# //If the “Has an alarm” Boolean is True calculate a value, otherwise don’t if (Input1 == true) { return Input2 + Input3; } else { return Input4; //Input4 is the current value }