Documentation

defined

Syntax: %defined(s,type)

returns true if s is a defined alias, variable, macro, or path. The optional type argument can be used to specify the type of setting to test. The type names are the same as used in the #T+ command.

Example:

#VAR a {}
#VAR b { }
#UNVAR c
#SHOW a:%defined(a) b:%defined(b) c:%defined(c)

Displays:

a:1 b:1 c:0

Add comment

Login or register to post comments