read-variable "variable" [alt]
Returns the value of the CLI variable named variable if it is defined. If the variable does not exist, then alt is returned or FALSE if alt is not specified.
Note that read-variable foo
returns the value of variable $foo, whereas read-variable $bar
returns the value of the variable whose name is stored in $bar.
Simics Core
defined,
$