开云体育

ctrl + shift + ? for shortcuts
© 2025 开云体育

Re: Multiple Price Conditions with "OR"


 
Edited

Not sure which API language you are referring to, but the isConjunctionConnection field does exist. In the Java API is is defined in the OrderCondition super class that all specialized condition classes extend.

Below a small utility function from our framework that configures an OrderCondition of any type to be connected to the next condition in the list with OR.

闯ü谤驳别苍

???
public static final boolean ConjunctionAnd = true;
public static final boolean ConjunctionOr = false;

// Make this order condition connect to the next condition with "or".
public static <T extends OrderCondition> T or( final T orderCondition )
{
if ( orderCondition != null ) {
orderCondition.conjunctionConnection( ConjunctionOr );
?? ?}

?? ?return orderCondition;
}

Join [email protected] to automatically receive all group messages.