Next Previous Up Top Contents Index

WebMaker User Guide

12.3 User-defined variables

You can define global variables that you can subsequently use in the definitions of node rules, paragraph rules, and character rules.

Variables are defined with:

VARIABLE @string 

The WebMaker keyword VARIABLE defines a variable. The VARIABLE keyword must be followed by a character string that identifies the variable. This identifier must start with the @ character, and must be followed by an alphanumeric character. The rest of the identifier may be made up of any combination of alphanumeric and the - and _ characters.

VARIABLE @initialsdate
...
Node FirstPage
{ ...
  HEADER {
            @initialsdate=concatenate("MR - ", date());
            write(*,address(@initialsdate));
...