This documentation is archived and is not being maintained.

Or 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.

Used within the Where element to group filters in a query.






Minimum: 0

Maximum: Unbounded

This element can be nested inside other Or and And elements. The server supports unlimited complicated queries.

The following example performs a query for cases in which values of the Status field either do not equal Completed or are null. The results are sorted in descending order according to the Modified field.

    <FieldRef Name="Modified" Ascending="FALSE"></FieldRef>
        <FieldRef Name="Status"></FieldRef>
        <Value Type="Text"></Value>
        <FieldRef Name="Status"></FieldRef>