This documentation is archived and is not being maintained.

Gt Element (Query)

Windows SharePoint Services 3

This content is outdated and is no longer being maintained. It is provided as a courtesy for individuals who are still using these technologies. This page may contain URLs that were valid when originally published, but now link to sites or pages that no longer exist.

Arithmetic operator that means "greater than." This element is used similarly to the Eq and Lt elements.

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





Minimum: 0

Maximum: Unbounded

Remember that Collaborative Application Markup Language (CAML) is case-sensitive; note the lowercase "t" in the Gt element name.

The following example queries for cases where the Deadline field value either equals an empty string or is later than the current date.

        <FieldRef Name="Deadline" />
        <FieldRef Name="Deadline" />
        <Value Type="DateTime">
          <Today />
    <FieldRef Name="Modified" Ascending="FALSE" />