ExpSub Method

Create "subtract" (-) operator that applies to a variable number of expressions. If only one argument is provided, return the negation of that argument. Otherwise, return the sum of the 2nd to Nth argument subtracted from the 1st argument. All arguments must resolve to the same type (integer or float). Requires server version 5.6.0+.

Definition

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

Parameters

exps  Exp
 

Return Value

Exp

Example

C#
// a - b - c > 10
Exp.GT(
  Exp.Sub(Exp.IntBin("a"), Exp.IntBin("b"), Exp.IntBin("c")),
  Exp.Val(10));

See Also