If('Condition','IF-True','IF-False')
Arguments
|
'Condition' |
Condition as an operation with the Boolean results TRUE or FALSE |
|
'IF-True' |
Operation is performed if 'Condition' is TRUE |
|
'IF-False' |
Operation is performed if 'Condition' is FALSE |
Description
You can use the If function for a conditioned execution of further calculations. Depending on the Boolean result of a 'Condition', which can itself be an operation, the operation 'IF-True' will be executed if the result is TRUE and the operation 'IF-False' if the result is FALSE.
Hence, different calculations can be executed in a process-controlled manner. Of course, you can use this function in a nested matter and thus realize further branches.
Note |
|
|---|---|
|
If you combine signals with different sampling rates, the signals are automatically resampled before the calculation. The sampling rate (XBase) of the 'Condition' signal is decisive. To obtain a result with a specific sampling rate, you can adjust the 'Condition' signal using the Resample function. |
|
Tip |
|
|---|---|
|
If you enter an analog signal for 'Condition', as a condition it will be checked whether the value is greater than (TRUE) or less than (FALSE) 0.5. |
|