Eq Element (Query)

Last modified: July 15, 2011

Applies to: SharePoint Foundation 2013 | SharePoint Server 2013

In this article
Attributes
Child Elements
Parent Elements
Occurrences

Arithmetic operator that means "equal to" and is used within a query.


<Eq>
</Eq>

Attribute

Description

None

N/A

Minimum: 0

Maximum: Unbounded

If the Status column equals Completed or is empty, the query in the following example returns rows from the Modified column in descending order.

<Query>
  <OrderBy>
    <FieldRef Name="Modified" Ascending="FALSE"></FieldRef>
  </OrderBy>
  <Where>
    <Or>
      <Eq>
        <FieldRef Name="Status"></FieldRef>
        <Value Type="Text">Completed</Value>
      </Eq>
      <IsNull>
        <FieldRef Name="Status"></FieldRef>
      </IsNull>
    </Or>
  </Where>
</Query>
Show:
© 2014 Microsoft