Select Function

Owning Palette: Comparison Functions

Requires: Base Development System

Returns the value wired to the t input or f input, depending on the value of s. If s is TRUE, this function returns the value wired to t. If s is FALSE, this function returns the value wired to f.

The connector pane displays the default data types for this polymorphic function.

 Add to the block diagram  Find on the palette
t is the value that this function returns if s passes a TRUE value. t and f must be of the same type, but they can have different numeric representations.
s determines whether the function returns the value of t or f in s? t:f. If you wire an error cluster to s and an error occurs, the error cluster passes a TRUE value to the function. Otherwise, the error cluster passes a FALSE value to the function.
f is the value that this function returns if s passes a FALSE value. t and f must be of the same type, but they can have different numeric representations.
s? t:f is the value wired to t if s is TRUE. s? t:f is the value wired to f if s is FALSE.