Share

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.

image

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.

Was this information helpful?