ExpLet Method

Define variables and expressions in scope. Requires server version 5.6.0+.

Definition

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

Parameters

exps  Exp
 

Return Value

Exp

Example

C#
// Args Format: def1, def2, ..., exp
// def: 
// exp: Scoped expression
// 5 < a < 10
Exp.Let(
  Exp.Def("x", Exp.IntBin("a")),
  Exp.And(
    Exp.LT(Exp.Val(5), Exp.Var("x")),
    Exp.LT(Exp.Var("x"), Exp.Val(10))));

See Also