Else Element (View)

Last modified: March 09, 2015

Applies to: SharePoint Foundation 2010

The instructions within this element are executed if the expressions contained in the IfEqual element are not TRUE.


<Else>
</Else>

Attribute

Description

None

N/A

Minimum: 0

Maximum: 1

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

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