2

Sorry, probably an obvious one, but how do I do 4 ORs and an AND?

I know that 3 look like this

<And>
Many other Ands and Ors here
</And>
<Or>
    A
    <Or>
        B
        C
    </Or>
</Or>

but 4 seems to be pretty confusing.

1 Answer 1

2
<And>
    <And>
        Many other Ands and Ors here
    </And>
    <Or>
        A
        <Or>
            B
            <Or>
                C
                D
            </Or>
        </Or>
    </Or>
</And>

From the documentation:

The server supports unlimited complicated queries. However, any given Or element can have only two disjuncts; that is, only two child elements. If you need to disjoin three or more conditions, you must nest the Or elements

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge that you have read and understand our privacy policy and code of conduct.

Not the answer you're looking for? Browse other questions tagged or ask your own question.