This documentation is archived and is not being maintained.

IfEqual Element

SharePoint Team Services 1.1

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



Related Elements

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


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.

  <Then>Happy Halloween!</Then>
  <Else>Just another day</Else>

See Also