Understanding the Language

PracticeScript is called an expression language. The term refers to the concept of a mathematical expression, or a formula. PracticeScript formulas are evaluated to calculate their final meaning.

Example: 1 + 3 is a simple mathematical expression that is also a valid PracticeScript expression. It evaluates to 4.

PracticeScript can handle complex mathematical expressions, such as:

(3 + 2) * (4 - 1).

In PracticeScript, the asterisk (*) is used to signify multiplication. The rules from mathematics state that numbers in parenthesis are evaluated first, as in the following expression:

(3 + 2) * (4 - 1) is equal to 5 * 3 which evaluates to 15.

 

Related Topics

Using PracticeScript

Understanding Character Expressions

Understanding the Rules of Precedence