Desktop User Guides > Professional > Using UNICOM Intelligence Professional > Debugging mrScriptBasic code > Examining the values of variables > Using the Expressions pane
 
Using the Expressions pane
You can use the Expressions pane to evaluate an expression or to inspect the value of an object's properties. Do one of the following:
Type the expression in the box, and then click Evaluate.
Type a question mark, type the expression, and then press Enter. For example, type ?a and press Enter to display the value of the a variable.
You can also re-evaluate an expression that you previously evaluated by selecting the text of the expression, and then clicking Evaluate.
For example, here is the Expressions pane after using the Sqrt function to evaluate the square root of the a variable:
This graphic is described in the surrounding text.
Sometimes you might need to resize the pane in order to be able to see the output. Here is the Expressions pane after evaluating the value of an MDM property:
This graphic is described in the surrounding text.
You can also use the Expression pane to change the value of a variable. For example, if you type a = 15 and press Enter (or click Execute), UNICOM Intelligence Professional sets the value of the a variable to 15.
The Expression pane can be used to declare variables, which you can then use to store the current value of another variable when you are debugging a script. For example, type dim temp and press Enter to declare a variable called temp. Then assign the value of a to temp by typing temp = a and pressing Enter. To restore the original value of a at any point, type a = temp and press Enter.
See also
Examining the values of variables