Then Element
The contents of a Then element in an IfEqual or IfNew statement are rendered based on whether the contents of the Expr1and Expr2 elements are equal or new.
Syntax
<Then>
</Then>
Related Elements
Parent Elements | Child Elements |
---|---|
IfEqual,IfNew | Column, ForEach, HTML, HttpVDir, Limit, ListProperty, Property |
Example
In the following example, the IfEqual element renders either the Then or Else subelement based on whether the renderings of the Expr1 and Expr2 elements are equal or not.
<IfEqual>
<Expr1><Today/></Expr1>
<Expr2>10/31/2000</Expr2>
<Then>Happy Halloween!</Then>
<Else>Just another day</Else>
</IfEqual>