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