This documentation is archived and is not being maintained.

Expr1 Element

SharePoint 2003

The Expr1 element is used within an IfEqual element as part of a comparison with the value contained in an Expr2 element. The Expr1 element contains the CAML expression that is evaluated to determine the course of action for an IfEqual statement. The expressions can be any set of CAML elements that render text, or they can be other conditionals.



Element Relationships

Parent Elements
IfEqual, IfNeg


The following example evaluates two expressions, and if they are equal, it conveys a holiday greeting, but if not, it conveys a different message.

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

Related Topics