Share via


Geq Element

The Geq element is an arithmetic operator that means "greater than or equal to." It can be used within a Where element in a view definition.

Syntax

<Geq>
</Geq>
Parent Elements Child Elements
And, Or, Where FieldRef, Value

Remarks

Remember that CAML is case sensitive; note the lowercase "eq" in this element's name.

Example

The following example queries for cases where the Expires field value either equals an empty string or is greater than or equal to the current date:

<Query>
  <Where>
    <Or>
      <IsNull>
        <FieldRef Name="Expires" />
      </IsNull>
      <Geq>
        <FieldRef Name="Expires" />
        <Value Type="DateTime">
          <Today />
        </Value>
      </Geq>
    </Or>
  </Where>
  <OrderBy>
    <FieldRef Name="Modified" Ascending="FALSE" />
  </OrderBy>
</Query>

See Also

Eq

Gt

Lt

Neq

Query