Returns one of the two input objects depending on the specified condition.
|inObjectIfTrue||<T>||Object to be chosen if the condition is met|
|inObjectIfFalse||<T>||Object to be chosen if the condition is NOT met|
|inCondition||Bool||Determines which object is to be chosen|
The type of this filter is defined using the type variable T which represents any valid type. Read more.
- Also consider the ternary operator ?: in Formula Blocks.
- This filter creates a full copy of one of the input objects. Thus, if you need the highest possible speed, use this filter only with primitive types. An alternative is to use Variant Step macrofilters which are fast and elegant.
inObjectIfTrue = "Mike"
inObjectIfFalse = "Bill"
inCondition = False
outObject = "Bill"
This filter can be replaced with the following formula:
This filter is available on Basic Complexity Level.
This filter is member of Choose filter group.