10 WebMaker Language (WML)

10.3 WML 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));
...

WebMaker User Guide - 27 SEP 1995

Generated with Harlequin WebMaker