Export (0) Print
Expand All

IfEqual Element

SharePoint Team Services 1.1

The IfEqual element allows for conditional rendering based on the comparison of two CAML expressions.

Syntax

<IfEqual>
</IfEqual>

Related Elements

Parent ElementsChild Elements
Case, DisplayPattern, ForEach, ViewBody, XMLElse, Expr1, Expr2, Then

Example

In the following example, the IfEqual element renders the contents of either the Then or Else child element, based on whether the contents of the Expr1 and Expr2 elements are equal or not.

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

See Also

IfNew


Show:
© 2014 Microsoft