Chapter 4: CML Functions
[TOP] [PREV] [NEXT] CML contains a large number of functions, which provide much of the power of the language. They are grouped by category and described in the subsections listed below:
CML functions serve several purposes:
- Extract data (from the Caucus conference database) for display.
- Manipulate or compare data (such as addition, subtraction, testing equality, etc.)
- Put new data back into the Caucus database.
- Maintain "state" information between CML pages.
The syntax of a function must always be "$name(arguments)". There must be no spaces between "$" and "name". Spaces may be used freely around the "(" and ")". Anything (including spaces or other functions) may be in the arguments. Some functions have no arguments.
If you wish to display a "$" in your HTML text, and not have it be confused with a CML function, escape it with a preceeding "\", i.e. "\$".
CML variables
CML supports one type of variable, that contains arbitrary string data. To get the contents of a variable (called "evaluating" a variable), you use a syntax similar to function evaluation:
$(name)
This means "evaluate the variable name, and place its value here". For more information about variables, see the CML directives "for", "count" and "set".