Syntax

The syntax of the AL language is designed to assist in building business applications.

From code, you have access to various snippets that will give you a template for a specific object type.

Note

Use a code snippet from an .al file by start typing the snippet name.

Examples of snippets

The following is a non-comprehensive list of the snippets that you can use in the AL.

Type... To get a...
tassert Assert error structure
tcaseof Case of structure
tcaseelse Case else structure
tcodeunit Codeunit object structure
tfield Table field structure
tfieldpage Page field structure
tfor For structure
tif If structure
tifelse If else structure
tpage Page object structure
tpageext Page extension structure
tprocedure Method structure
tquery Query object structure
trepeat Repeat until structure
treport Report object structure
ttable Table object structure
ttableext Table extension structure
ttrigger Trigger structure
twithdo With do structure
twhile While structure
txmlport XMLport object structure

See Also

Getting Started with AL