LetClause

Bind variables by evaluating expressions.


Syntax

LetClause

graphics/LetClause.png

Variable Expr

Description

A LetClause is part of FLWOR and FLWU expressions and contains one or more variables that will be related to the expression that follows. The let clause binds directly each variable to the result of evaluating the expression. If there are for clauses, the variable bindings are added to the tuples created in the for clauses. Otherwise a single tuple with all variable bindings is created. The return clause will be invoked once for each generated tuple that is retained after passing the optional where clause.

Example

See FLWORExpr for examples.

Related Syntax Constructs

The following construct(s) refer to this construct:

This construct is also related to the following construct(s):

ForClause WhereClause