GET_ATT_PLAIN

Script function: Supplies the value of a task's attributes during its generation. Variables are not resolved.

Syntax

GET_ATT_PLAIN (Attribute)

Syntax

Description/Format

Attribute

Name of the attribute whose value should be read.
Format: AE name, script literal or script variable


Return code

Value of the specified attribute.

This script function can be used to read an object's attributes during the generation process. Its behavior is similar to the behavior of the GET_ATT script function, with the difference being that script, object and predefined variables are not replaced by values in the attribute. Therefore, the variable name is retrieved instead of its value. GET_ATT always resolves these variables. For more information, see GET_ATT.

Note: Placeholders for VARA objects that are enclosed in curly brackets {} are supplied with values neither in GET_ATT nor in GET_ATT_PLAIN.

Example

The following example writes a script variable's name to an attribute and assigns a value to it. The attribute's content is then retrieved with and without the replaced variable value. The corresponding information is written to the activation report.

:PUT_ATT INT_ACCOUNT = "&&test#"
:SET &test# = "test"
:SET &att# = GET_ATT(INT_ACCOUNT)
:SET &attplain# = GET_ATT_PLAIN(INT_ACCOUNT)
:PRINT "Variable name = &attplain#"
:PRINT "Variable value = &att#"

See also:

seealso

MODIFY_UC_OBJECT