Printing the value of an expression
To print the value of a scalar expression or parameter use the syntax:
PRINT = expression
For example, to print the answer to a simple arithmetic expression:
PRINT = 2*5
When you run the macro, the command window displays the result, 10.
You can also apply an arithmetic expression to the value of a parameter. For example:
EDIT TOOL ; DIAMETER 10
PRINT = Tool.Diameter * 0.6
When you run the macro, the command window displays the result, 6.