Insert Into Set Function

Owning Palette: Set VIs and Functions

Requires: Base Development System

Inserts an element into a set.

Examples

 Add to the block diagram  Find on the palette
set in specifies the set in which you want to insert an element. This input accepts a set of any data type. The default data type is a set of strings.
element specifies the data you want to insert into the set. This input must be of the same data type as the existing elements in the set.
set out returns the set with the inserted element.
already included? returns whether set in already includes the inserted element. If already included? is TRUE, set out returns the same set as set in.

Examples

Refer to the following VIs for examples of using the Insert Into Set function: