Show TOC

Using Multiple HTMLBusiness StatementsLocate this document in the navigation structure

Use

When using multiple HTMLBusiness statements, you can:

  • Enclose them in separate <server> ... </server> blocks or sets of back quotes.

  • Enclose them in a single server command or between a single pair of back quotes.

In this case, you separate the HTMLBusiness statements with semi-colons (just like in C or JavaScript), as in the following statement:

<p> 'for (j=0; j <= array.dim; j++)
  j; write("="); array[j]; write (", ")
  end'
</p>
         

Delimiters Between Statements in Back Quotes

Prior to ITS 2.2, you had to insert at least one separator between multiple HTMLBusiness statements enclosed in back quotes or between the <server> and </server> tags.

From ITS 2.2, you do not need a separator between each statement, so you can write:

`if (1)``write("Hello world")``end`.
            

Delimiters Between Successive HTMLBusiness Statements

Prior to ITS 2.2, you had to insert a semicolon or at least a single separator between successive HTMLBusiness statements.

From ITS 2.2, you need neither semi-colons nor other separators. Therefore, you do not have to include a semicolon:

  • Before the keywords end, else, elsif and elseif

  • After statements that introduce a block

Examples are for (...), if (...), elsif (...), elseif (...) and repeat ( )