Gt Element
The Gt element is an arithmetic operator that means "greater than." This element is used similarly to Eq and Lt.
Syntax
<Gt>
</Gt>
Related Elements
Parent Elements | Child Elements |
---|---|
And,Or,Where | FieldRef, Value |
Remarks
Remember that CAML is case sensitive; note the lowercase "t" in this element's name.
Example
The following example queries for cases where the Deadline field value either equals an empty string or is greater than the current date.
<Query>
<Where>
<Or>
<IsNull>
<FieldRef Name="Deadline" />
</IsNull>
<Gt>
<FieldRef Name="Deadline" />
<Value Type="DateTime">
<Today />
</Value>
</Gt>
</Or>
</Where>
<OrderBy>
<FieldRef Name="Modified" Ascending="FALSE" />
</OrderBy>
</Query>