This topic has not yet been rated - Rate this topic

Expr Element (View)

Published: May 2010

Contains a CAML expression that is evaluated to determine the course of action for a Switch or FieldSwitch statement. The expressions can be any set of CAML elements that render text, or they can be other conditionals.


<Expr>
</Expr>

Attribute

Description

None

N/A

Minimum: 0

Maximum: 1

The following example checks the value of a UserID field and returns "User Zero" if the value is 0 (zero). Otherwise, it sets a default value: "Not User Zero".

<Switch>
  <Expr><UserID/></Expr>
  <Case Value="0">User Zero</Case>
  <Default>Not User Zero</Default>
</Switch>

Date

Description

Reason

May 2010

Initial publication

Did you find this helpful?
(1500 characters remaining)
Community Content Add
Annotations FAQ