A ToolBox program is a single file with global variables, procedures and the main begin end; section for starting the program. The grandfather of AL is Pascal, and the base structure of a ToolBox program is very similar to a classic Pascal program.
AL in the ToolBox is a subset of real AL, there are many things you can do in the ToolBox, but it’s only a fraction of what you can do with the AL language in Visual Studio Code.
The shortest possible ToolBox program looks like this:
Actually, it can be made even shorter, you can omit the begin end; and just do:
The following snippet is a skeleton example of a script with globals variables, procedures and a main section: