Input arguments

The input arguments for a function specify the information the function uses to return a result.

Some functions require an exact number of input arguments. For other functions, the number of input arguments can vary. Optional arguments for a function are shown in brackets [ ].

To correctly use a function, you must use the correct arguments in the correct order.

Each argument can, itself, be an expression. In general, an input argument might be any of the following:

  • an object name
  • a literal
  • a function-name and its arguments
  • an operator and its arguments
  • an enumerated series of literals, such as {a, b, c}
  • a map name and its arguments

For example, some valid expressions that use the ABS function are:

ABS ( Quantity:LineItem )
ABS ( UNIQUE ( Quantity:LineItem )
ABS ( Quantity:LineItem - 300 )

Each function has its own expression syntax for its input arguments. For example, the ABS function cannot use a map as an argument. See Syntax of a Function for notation used to specify valid expression syntax.