ExpExclusive Method

Create expression that returns true if only one of the expressions are true. Requires server version 5.6.0+.

Definition

Namespace: Aerospike.Client
Assembly: AerospikeClient (in AerospikeClient.dll) Version: 7.0.1
C#
public static Exp Exclusive(
	params Exp[] exps
)

Parameters

exps  Exp
 

Return Value

Exp

Example

C#
// exclusive(a == 0, b == 0)
Exp.Exclusive(
  Exp.EQ(Exp.IntBin("a"), Exp.Val(0)),
  Exp.EQ(Exp.IntBin("b"), Exp.Val(0)));

See Also