ExpLet Method

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

Namespace:  Aerospike.Client
Assembly:  AerospikeClient (in AerospikeClient.dll) Version: 5.1.1.0 (5.1.1)
Syntax

C#
public static Exp Let(
	params Exp[] exps
)

Parameters

exps
Type: Aerospike.ClientExp

Return Value

Type: Exp
Examples

// Args Format: def1, def2, ..., exp
// def: <see cref="M:Aerospike.Client.Exp.Def(System.String,Aerospike.Client.Exp)" />
// 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

Reference