[ << ] [ < ] [ Up ] [ > ] [ >> ]         [Top] [Contents] [Index] [ ? ]

7.30 SET

The SET command places values into one or more variables, provided the optional postcondition evaluates to true or is omitted.

Syntax

SET[:postcondition] set-argument[=expression | postfix-operator][,...set-argument[=expression | postfix-operator]]

Each set-argument can be:

variable-name

A local variable, global variable, writable intrinsic special variable, or writable structured system variable.

lhs-function

$EXTRACT or $PIECE.

If any grouping of set-arguments is surrounded by parentheses, all set-arguments in the parenthesized group will be set to the result of expression.

If postfix-operator is used instead of =expression, the results of applying postfix-operator to the set-argument will be stored in set-argument. postfix-operator may not be used following a parenthesized group of set-arguments.

Example (postfix-operator)

SET A++,B-- ; increments A, decrements B

This document was generated on September 20, 2023 using texi2html 5.0.