SqlBuilder.addCond

Builds a new expression which represents a condition (or operation).

Parameters

optype of condition
op1the ID of the 1st argument (not 0)
op2the ID of the 2nd argument (may be 0 if op needs only one operand)
op3the ID of the 3rd argument (may be 0 if op needs only one or two operand)

Returns

the ID of the new expression, or 0 if there was an error