var (PDL)

Purpose

Replaces a call with a variable value.

Syntax

var(variable_name)

Arguments

The function requires a variable name and takes it from the list of configured variables.

Returned Value

A variable’s value.

Examples

If you have created a PDL variable named my_var with the value annual sales, then query var(my_var) will be equivalent to the query annual sales.

The user can configure user variables, project variables or server variables and use them in text analysis nodes like Search Query or Taxonomy. It is also possible to create variables directly in Search Query and Taxonomy nodes. For more information about macros, see the Using Macros section.