User Tools

Site Tools


en:public:developer:template_system:tags:expression:caseof

Differences

This shows you the differences between two versions of the page.

Link to this comparison view

en:public:developer:template_system:tags:expression:caseof [2012/11/19 11:10]
admin [Attributes]
en:public:developer:template_system:tags:expression:caseof [2012/11/19 11:51] (current)
admin
Line 1: Line 1:
-===== <#CaseOf> =====+====== <#CaseOf> ======
  
 The purpose of the CaseOf is to allow the value of a variable or expression to control the flow of program execution via a multiway branch. The main reasons for using a CaseOf include improving clarity, by reducing otherwise repetitive coding The purpose of the CaseOf is to allow the value of a variable or expression to control the flow of program execution via a multiway branch. The main reasons for using a CaseOf include improving clarity, by reducing otherwise repetitive coding
  
-==== Attributes ====+==== Parameters ====
  
-  * **expression** - mandatory - An arbitrary expression (string or number) +^ Name              ^ Mandatory ^ Description ^       
-  * **statement_<a>** - optional - The content (html text or template filename) to return if the expression evaluate to <a> +| <html><span style="color:#008000">Expression</span></html>    | Yes       | An arbitrary expression (string or number). The tags in the expression are always evaluated first | 
-  * ... +&lt;html><span style="color:#008000">Statement_&lt;a&gt;</span></html| No        | The content (html text or template filename) to return if the expression evaluate to <a> | 
-  * **statement_<n>** - optional - The content (html text or template filename) to return if the expression evaluate to <n> +| <html><span style="color:#008000">...</span></html>           | ...       | ... | 
-  * **Default** - optional - Default value to return if no result found (else raise an error)+&lt;html><span style="color:#008000">Statement_&lt;n&gt;</span></html| No        | The content (html text or template filename) to return if the expression evaluate to <n> | 
 +| <html><span style="color:#008000">Default</span></html>       | No        | Default value to return if no result found (else raise an error) |
 ==== Example ==== ==== Example ====
  
en/public/developer/template_system/tags/expression/caseof.1353309002.txt.gz · Last modified: 2012/11/19 11:10 by admin