* VARIABLES \%0 is the name of the currently executing macro (if any). \%1 thru \%9 are its parameters (arguments), created when the macro is invoked and destroyed when it terminates. If a macro invokes another macro, a new set of arguments is created and the old set is preserved. (This is a change from 3.01 and earlier, in which macro arguments were global.) \%a through \%z are global variables that can be modified or accessed in any context. Created by DEFINE, ASSIGN, ASK, ASKQ, or READ. The following commands can be used for arithmetic on variables that have numeric values: INCREMENT [ ] Adds , if given, to the value of the named variable. If no is given, adds 1. DECREMENT [ ] Subtracts , if given, to the value of the named variable. If no is given, subtracts 1. Macro definitions can be used as variables too. DEFINE or ASSIGN the macro in the normal way, but refer to it using \m(name), for example: define phone-number 7654321 if not defined phone-number echo Phone number is is not defined! echo The phone number is \m(phone-number). dial \m(phone-number) \v(xxx) is a built-in variable, where xxx is its name: \v(argc) macro argument count \v(count) current value of loop counter (SET COUNT / IF COUNT) \v(date) current date in country format, e.g. dd-mm-yyyy 08-02-1991 \v(dosversion) Version of DOS under which Kermit is running \v(ndate) numeric date yyyymmdd, e.g. 19910208 \v(directory) current disk and directory, e.g. C:\LETTERS\ \v(errorlevel) current value of ERRORLEVEL variable (SET ERRORLEVEL) \v(keyboard) IBM PC keyboard type: 88, 101, or (for LK250) 250. \v(line) Same as \v(port) \v(ntime) Seconds since midnight \v(platform) PC type, e.g. IBM-PC, DEC-RAINBOW \v(port) Current SET PORT value \v(program) Program name, MS-DOS_KERMIT \v(speed) Current transmission speed (only for COM1..4, EBIOS) \v(status) 0 if previous command succeeded, nonzero if it failed. \v(system) MS-DOS \v(terminal) Current terminal emulation type, e.g. VT320 \v(time) Current time of day, hh:mm:ss, e.g. 12:30:01 \v(version) Numeric program version, e.g. 311 for version 3.11. \$(xxx) is a DOS environment variable, e.g. \$(COMSPEC). .