aliasΒΆ

alias gives a meaningful name to a constant in the program.

bool = alias(ssSymbol, ssValue)
ssValue = alias(ssSymbol)

Return Value

If the function succeeds, the return value is TRUE (1); otherwise it is FALSE (0).

Parameters

ssSymbol

ssSymbol is a scalar string which follows the following convention: The string must start win an underscore ("_") or a letter followed by any number of letters, underscores and numbers.

ssValue

ssValue is the replacement text. This text can be any string. An empty string removes the alias from the symbol table.

Example

Replacement text can contain characters other than numbers and letters through the definition of the following 5 symbols:

alias ("when", "if");
alias ("then", "{");
alias ("end", "}");
alias ("smaller", "<");
alias ("print");

Instead of the command,

if (a < b) {
    print "a is smaller than b"
}

the command can be written in this form:

when (a smaller b) then
    print "a is smaller b"
end

History

Version Description
R2015 Call as ssValue = alias(ssSymbol).

id-293653