var.set

This command sets and displays the value of an existing script variable. It can also display the result of an expression. Script variables are for use at runtime only.

Show/hideSyntax

var.set [\name=]expression

Where:

name

Specifies the name of an existing script variable.

Note

If you specify the name of an existing script variable then you must use this command after the var.new command.

expression

Specifies an expression that is evaluated and the result is returned. If you specify an expression with the name option then the value of that script variable is also updated with the result of the expression.

Show/hideExample

Example 182. var.set

var.set \myVar                ; Display value of script variable
var.set \myVar=3+3            ; Set value of script variable and display result
var.set 3+3                   ; Display result

Show/hideSee also

Copyright © 2010, 2011 ARM. All rights reserved.ARM DUI 0452G
Non-ConfidentialID092311