Leq Element
The Leq element is an arithmetic operator that means "less than or equal to." It is used in view queries similarly to the Eq and Geq elements.
Syntax
<Leq>
</Leq>
Element Relationships
Parent Elements | Child Elements |
---|---|
And, Or, Where | FieldRef, Value |
Example
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>