Export (0) Print
Expand All

Leq 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 "less than or equal to." The Leq element is used in view queries similarly to the Eq and Geq elements.


<Leq>
  <FieldRef Name = "Field_Name"/>
  <Value Type = "Field_Type"/>
  <XML />
</Leq>

Attribute

Description

None

N/A

Minimum: 0

Maximum: Unbounded

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

<Query> 
  <Where> 
    <Or> 
      <IsNull> 
        <FieldRef Name="Expires" />  
      </IsNull> 
      <Leq> 
        <FieldRef Name="Expires" />  
        <Value Type="DateTime"> 
          <Today />  
        </Value> 
      </Leq> 
    </Or> 
  </Where> 
  <OrderBy> 
    <FieldRef Name="Modified" Ascending="FALSE" />  
  </OrderBy> 
</Query>
Show:
© 2015 Microsoft