Поделиться через


Then Element (View)

This content is outdated and is no longer being maintained. It is provided as a courtesy for individuals who are still using these technologies. This page may contain URLs that were valid when originally published, but now link to sites or pages that no longer exist.

Contains what is rendered in an IfEqual or IfNew element, based on whether the contents of the Expr1 and Expr2 elements are equal or new, respectively.

<Then>
</Then>

Attributes

Attribute

Description

None

N/A

Child Elements

Numerous

Parent Elements

IfEqual, IfHasRights, IfNew, IfSubString

Occurrences

Minimum: 0

Maximum: 1

Example

The following example uses the IfEqual element to render either the Then element or the Else element, based on whether the contents of the Expr1 and Expr2 elements are equal.

<IfEqual>
  <Expr1><Today/></Expr1>
  <Expr2>10/31/2000</Expr2>
  <Then>Happy Halloween!</Then>
  <Else>Just another day</Else>
</IfEqual>

See Also

Reference

Else Element (View)

Expr1 Element (View)

Expr2 Element (View)