Variant Attribute Get / Replace
- Updated2025-03-14
- 3 minute(s) read
Variant Attribute Get / Replace
Right-click the border of an In Place Element structure and select the Add Variant Attribute Get / Replace option from the shortcut menu to place this border node on the In Place Element structure.

Inputs/Outputs
![]() variant specifies the variant for which you want to retrieve or change an attribute. ![]() attribute name specifies the name of the attribute whose value you want to retrieve or change. ![]() attribute returns the original value of the attribute if found? is TRUE. This parameter returns an empty attribute if found? is FALSE. ![]() found? returns TRUE if the attribute was found with the specified attribute name and the specified attribute name is not a duplicate name of a previously found attribute. The indicator returns FALSE if the specified attribute name was not found, or if the specified attribute name was a duplicate name of a previously found attribute. ![]() attribute specifies the retrieved or changed value of the attribute. ![]() variant returns the variant with the retrieved or changed attribute. ![]() attribute name returns the name of the retrieved or changed attribute. ![]() |
Use this border node to access and modify one or more attributes of a variant without copying the attributes out of the variant. Each attribute value you retrieve with the border node on the left side of the structure must be replaced with an attribute value using the border node on the right side of the structure.
The border node on the left side of the structure is similar to the Get Variant Attribute function. The border node on the right side of the structure is similar to the Set Variant Attribute function.
Examples
Refer to the following example files included with LabVIEW.
- labview\examples\Performance\Variant Attribute Lookup Table\Variant Attribute Lookup Table.vi