getAttribute

Description

Retrieves value from an attribute of an object variable in the application's local variable pool.

Input / Parameter

Output

Example

In this example, we will use a value of an attribute from global variable which had been declared.

Steps

  1. Drag a button component into the canvas and open the Action tab. Select the press event of the button and drag the Log.write function to the event flow.

  2. Assuming you have followed the "Variable.setAttribute" fuction in help document, call the function.

Result

  1. If the specified global variable attribute has previously been set (see setAttribute), the function will return the variable attribute's value ("Johnny" in this example).

  2. If the specified global variable attribute does not exist, the function will return the value in defaultValue.

See also

Last updated