2.3.21 var.set

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.


var.set [\name=]expression



Specifies the name of an existing script variable.


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

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.

Example 2-21 Examples

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
Non-ConfidentialPDF file icon PDF versionARM DUI0452Z
Copyright © 2010-2016 ARM Limited or its affiliates. All rights reserved.