Inserts an element into a set.


icon

Inputs/Outputs

  • cset.png 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.

  • cstr.png 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.

  • iset.png set out

    set out returns the set with the inserted element.

  • ibool.png 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