|
SummaryThis lesson have been treating the Roxen Macro Language (RXML) If tags, used to create dynamic web pages based on conditions. They also make it possible to create web applications in RXML without using any programming language. The If tags correspond to the if-else control flow statements common in regular programming languages. If tags statements are built up by six basic tags, <if>, <else>, <elseif>, <then>, <true> and <false>. The general syntax is:
Mandatory attribute to <if> and <elseif> is an If plugin. Logical attributes - and, or and not - adds functionality. Inside the attribute expression, '=', '==', 'is', '!=', '<' and '>' operators are valid. For proper XML, always close tags
and give all attributes a value
The If plugins are divided into five categories, Eval, Match, State, Utils and SiteBuilder, according to their function. Eval plugins evaluate expressions as in regular programming languages, Match plugins match contents with arguments given and State plugins check which of the conditions possible is met. Utils plugins perform specific tests such as present date or time. SiteBuilder plugins require a Roxen Platform SiteBuilder and add test capabilities to web pages contained in a SiteBuilder.
Here is an example of a simple if-else with RXML <if> and the Eval plugin Variable. References
If you have any questions, suggestions, comments or complaints about this lesson, please send an e-mail to manuals@roxen.com. |
||||||||||||