IFLONGER Examples
- Last UpdatedJan 25, 2024
- 1 minute read
Example 1
The following expression evaluates whether or not the stream Pump1.Flowrate remains greater than 75 for a period longer than or equal to 1 minute. If it does, it returns a value of TRUE. If it doesn't, it returns a value of FALSE.
IFLONGER(Pump1.FlowRate > 75.0, 1 minute)
Example 2
The following expression evaluates whether or not the stream SysTimeSec remains greater than or equal to 20 for a period longer than or equal to half a minute. If it does, it returns the value 5. If it doesn't, it returns a "bad quality" value.
IFLONGER(SysTimeSec >= 20, 0.5 minute, 5)
Example 3
The following expression evaluates whether or not the stream Pump1.Flowrate remains greater than 75 for a period longer than or equal to 1 minute. If it does, it returns the value from Pump1.Flowrate. If it doesn't, it returns a value of 75.
IFLONGER(Pump1.FlowRate > 75.0, 1 minute, Pump1.FlowRate, 75.0)