Scripting

A script specifies the layout and behavior of HTML pages. Script segments are enclosed between the <% and %> or <%= and %> delimiter pairs. The second pair of delimiters entails special use and meaning in the script file. In each script segment, there must be at least one valid executable, or non-comment, statement. There must also be at least one scripting segment in the MCS file. Any empty script segment generates a syntax error. Scripting segments can be freely intermixed with standard HTML text, provided that the script-generated HTML output has the valid syntax within the context of the standard HTML display code. In the following sections are code examples of channel script and item script files.