Skip to main content

Expression Statement

Expression statements are most commonly either assignment or call expressions, but are defined as any expression followed by a semicolon.

VAR
a : INT;
END_VAR

a; // This is an expression statement even though it does nothing
Call Expression Statements
// Functions
print(a);


// Function Blocks


// Methods
Assignment Expression Statements
a := a + 1;

a := EXPT(2, 3);