Share via


Eq Element

The Eq element is an arithmetic operator that means "equal to" and is used within the Query element.

Syntax

<Eq>
</Eq>

Element Relationships

Parent Elements Child Elements
And, Or, Where FieldRef, Value

Example

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>