De interface van VDS Renaissance is in meerdere talen beschikbaar. De officiële documentatie wordt in het Engels onderhouden om één consistente en altijd actuele referentie te garanderen.

@COMMANDS, @FUNCTIONS, @ISCOMMAND, @ISFUNCTION

Windows Linux macOS

[VDS7]

Syntax

@COMMANDS()

@FUNCTIONS()

@ISCOMMAND(<name>)

@ISFUNCTION(<name>)

Description

These functions let a script discover the vocabulary of the language itself. They are useful for tools written in DialogScript — assistants, code generators, documentation helpers.

@COMMANDS() Returns the names of all commands, separated by the current field separator.
@FUNCTIONS() Returns the names of all functions (each with its leading @), separated by the field separator.
@ISCOMMAND(<name>) Returns 1 if <name> is a command, otherwise 0.
@ISFUNCTION(<name>) Returns 1 if <name> is a function, otherwise 0. The name may be given with or without the leading @ (@upper and upper are both accepted).

OK

Unchanged.

Example

REM is DIALOG a command?
if @iscommand(dialog)
  info Yes, DIALOG is a command
end
REM show every function name
info @functions()

See also