Documentation

makealias

makealias

Syntax: zs.makealias{prop-list}

Creates a new alias or modifies an existing alias and returns the Alias record. This uses the Lua class syntax of {prop-list} where {prop-list} is a table of property values. Some properties can be set by the index (position in the table), while other properties can be set by name.

The indexed properties are: Name, Value/Script, and Class. So, for example:

a = zs.makealias{"myalias", "commands", "myclass"}

will create an alias called "myalias" in the class folder "myclass" with the "commands" as the value/script of the alias. This same alias could have been created with the syntax:

a = zs.makealias{name="myalias", value="commands", class="myclass"}

This key=value syntax allows you to set *any* of the properties of the Alias object at creation time directly.

Add comment

Login or register to post comments