if"
From Documentation
Tmillsclare (talk | contribs) m |
m |
||
(4 intermediate revisions by 2 users not shown) | |||
Line 1: | Line 1: | ||
− | {{ | + | {{ZUMLReferencePageHeader}} |
+ | '''Syntax:''' | ||
if="${''an-EL-expr''}" | if="${''an-EL-expr''}" | ||
Line 7: | Line 8: | ||
For example, suppose you want to place either one label or another in a column of a grid, you might use something like this: | For example, suppose you want to place either one label or another in a column of a grid, you might use something like this: | ||
− | < | + | <source lang="xml"> |
<row forEach="${salesPersonList}"> | <row forEach="${salesPersonList}"> | ||
<label value="${each.salesPersonName}" if="${each.hasSalesPerson=='Y'}"/> | <label value="${each.salesPersonName}" if="${each.hasSalesPerson=='Y'}"/> | ||
<label value="-" style="float:center" if="${each.hasSalesPerson!='Y'}"/> | <label value="-" style="float:center" if="${each.hasSalesPerson!='Y'}"/> | ||
</row> | </row> | ||
− | </ | + | </source> |
− | {{ | + | ==Version History== |
+ | |||
+ | {| border='1px' | width="100%" | ||
+ | ! Version !! Date !! Content | ||
+ | |- | ||
+ | | | ||
+ | | | ||
+ | | | ||
+ | |} | ||
+ | |||
+ | {{ZUMLReferencePageFooter}} |
Latest revision as of 10:48, 18 November 2010
Syntax:
if="${an-EL-expr}"
It specified the condition to evaluate the associated element. In other words, the associated element and all its child elements are ignored, if the condition is evaluated to false.
For example, suppose you want to place either one label or another in a column of a grid, you might use something like this:
<row forEach="${salesPersonList}">
<label value="${each.salesPersonName}" if="${each.hasSalesPerson=='Y'}"/>
<label value="-" style="float:center" if="${each.hasSalesPerson!='Y'}"/>
</row>
Version History
Version | Date | Content |
---|---|---|