__header__

Description

The Expression tool creates an expression, and evaluates a mathematical expression.

Using the Expression Tool

On the Expression tool's parameters page the user defines the expression that will be evaluated in the "Expression" menu.  When the tool is run the expression will be evaluated and the result will be displayed in the "Result" menu.

A, B, etc. can be defined within the tool itself, or can be linked to a global parameter by dragging the Parameter object off the ROT. When the parameter object is added to a menu in the parameters page (A, B, etc.) a drop down menu will appear over the text box, and the user can use the drop down menu to select a parameter.

Example:

A = 25
B = 4

In the "Expression" menu type in "A*B".
When the tool is run the values in the A and B menus will be evaluated and the result will be given in the "Result" menu.

Result = 100


note the standard math symbols * / % + - AND OR are all recognized

Possible Expressions

The Maths tool incorporates all the basic math expressions (addition, subtraction, greater than, less than etc.) as well as several other more powerful expressions. Below is a list of the commands and their use.(NOT case sensitive)

Trig Functions

Maths Functions

Constants/Random

Misc

BYTE/WORD extraction

String Functions

Date Functions