Sets the state of a class. The specified class name is enabled if the state expression is true (1) or disabled if it is false (0). If you just specify #CLASS with no parameters, a list of classes is displayed with the status of each class indicated.
The #CLASS command can also be used to set the "default class". The default class is used whenever a setting is defined without specifying a class name. Normally the default class is <None>. To set the default class, use #CLASS with a single argument, which is the name of the class you want to set as the default. To return to the <None> default, use a classname of "0" (zero).
The #CLASS command is also used to create a new class. This is used by the Import and Export routines. Instead of a numeric state value, a text string of options is given as the second argument. This option list can contain the following values: "enable" to enable the class at startup, "disable" to disable the class at startup, "remove" to remove the class at startup, "hidden" to mark the class as hidden, "menu" to mark the class as a special menu class, "setdef" to make this the default class for triggers, aliases, etc. running within it.
In any case, if a class does not exist, then it will be created.
Add comment