Bundt Scripting Reference · Bundt Scripting Language version 1.0.1.0

set statement

Sets one or more variables to new value.

Syntax

set %[VariableName] = Expression, %[VariableName] = Expression, ...

Element Type Optionality Notes
VariableName Identifier Mandatory. Specifies the variable to set.
Expression Expression Mandatory. Specifies the value to assign to the variable.

Returns

A dictionary of the set variables plus their values.

Examples

Intent Code
Set a variable to a simple calculation set %a = 14 + 3.5 / 4;
Set a variable to a selected model part set %p = #127;

See Also


Contents distributed under a Creative Commons Attribution 4.0 International License · About · Terms of Use · Contact Us · last updated on 08 October 2020