Insert Into Set Function
- Updated2025-07-30
- 2 minute(s) read
Inserts an element into a set.

Inputs/Outputs
set in
—
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
—
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
—
set out returns the set with the inserted element.
already included?
—
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 example files included with LabVIEW.
- labview\examples\Collections\Set Collection - Word Counting.vi
- labview\examples\Design Patterns\Registration Map\Registration Map Usage.lvproj
set in
—
element
—
set out
—
already included?
—