Google Search diml.org
[ french ]

Table des matières
 Latest News
 An application of the  WCT_NEWS  component
>> Top of page

Language Reference

Block-shaped if Statement


Module : Core Group : Control Structures

Syntax 1 :

<%if (condition) %>
diml-alternative1
<%endif %>

Syntax 2 :

<%if (condition) %>
diml-alternative1
<%else %>
diml-alternative2
<%endif %>

Syntax 3 :

<%if (condition1) %>
diml-alternative1
<%elsif (condition2) %>
diml-alternative2
...
<%else %>
diml-alternativen
<%endif %>

the block form of the conditional statement provides IF, IF...ELSE and IF...ELSIF...ELSE structures. Same syntactic rules than in the compact form apply.

Alternatives: ALternate values can be DIML sequences that can contain nested DIML statements, including other conditional forms. Nested conditioanl structures MUST be complete (i.e. assuming a template or variable runtime substitution will complete the conditional structure is not allowed).


previous summary next


All material is copyleft V.G. FREMAUX (EISTI France) 1999 to 2003 except explicitly mentioned