# Variables, Expressions and Formatting

Learn about variables, expressions, and formatting using Templex.

Learn about variables, expressions, and formatting using Templex.

**Variables**

A variable is defined by specifying a name for the variable and assigning a value to it. After a variable is defined, it can be referenced anywhere in a template.**Vectors and Matrices (Arrays)**

In addition to scalars, Templex supports one- and two-dimensional arrays.**String and Mathematical Functions and Operators**

A variety of mathematical functions and operators can be used in Templex.**Expression Operators**

Templex follows the standard mathematical order of operations when an expression is evaluated.**Conditional Statements**

Within a template, conditional decisions can be made based on the evaluation of a control expression.**Iterative Statements**

Templex supports three types of iterative statements.**Formatting Guidelines**

Formatting general output, numeric output, character and string output, and matrices.