IfNeg element (View)

Applies to: SharePoint 2016 | SharePoint Foundation 2013 | SharePoint Online | SharePoint Server 2013

Contains two Collaborative Application Markup Language (CAML) expressions and allows for conditional rendering based on whether the first expression contains a negative value. The first expression is rendered if it contains a negative value, but if not, the second expression is rendered.

<IfNeg>
   <Expr1></Expr1>
   <Expr2></Expr2>
</IfNeg>

Elements and attributes

The following sections describe attributes, child elements, and parent elements.

Attributes

None

Child elements

Parent elements

Numerous

Occurrences

  • Minimum: 0
  • Maximum: Unbounded