Syntax

direct declaration: <type-specifier> <declaration-list>

type-specifier: bool, int, real, time, signal

Example:

time tau %% declaration time t90, t180 %% declaration-list int ph %% declaration

Legend: PPL keywords; PPL pulse commands; comments.

declaration by assignment: variable-name = <expression>

Example:

tau = 10us T = tau - 2us

Legend: PPL keywords; PPL pulse commands; comments.

Description

There are two ways of variable declaration: direct and by assignment.
Variables declared in the direct way (exported) can be changed from outside of the PPL script and are visible in experiment interface.
Variables declared by assignment are visible only inside the PPL script. Type of the variable in this case is equal to the type of expression it is assigned to.