Advanced Expressions

View as Markdown

Summary

  • Expressions in AdapTable have some powerful features for more advanced use cases. These include:
    • Using QUERY to reference other Expressions by keyword
    • The VAR function which allows developers to provide values which can be evaluated in other Expressions
    • Complex Logic - using IF and CASE functions
    • Error handling - using IFERROR, IFNA and NA
    • Referencing row data (rather than Columns) inside Expressions
    • Using $SCOPE as a stand-in for the current column in an object's Column Scope

Most Expressions are often fairly straightforward - typically just a couple of operands and an operator.

However, Expressions can include more complex elements to deal with advanced use cases.

This section details some of the more advanced Expression capabilities supported by AdapTableQL:

FunctionDescriptionGuide
QUERYReference a Named QueryQUERY Function
VARInject developer-provided valuesVAR Function
IF & CASEConditional logicLogic Functions
IFERROR/IFNACatch evaluation errors (and produce N/A)Error Functions
FIELDRead a value from the row that is not a ColumnFIELD Function
$SCOPEStand-in for current column when evaluating Column Scope$SCOPE Function

Hint