Project

General

Profile

Actions

Set » History » Revision 1

Revision 1/23 | Next »
Per Amundsen, 02/14/2014 08:39 PM


Added in 1.8.8

/set [-eklnsuNz] <%var> [value]*

Sets the value of %var to the specified value.

Switches

-e - Unset the variable when AdiIRC exists.
-k - Keeps the unset time (-u) from a previous command.
-l - Creates a local variable instead of global.
-n - Treat the value as plain text, even if arithmetic operators are used.
-s - Display variable assignment value.
-uN - Unsets the variable after N amount of seconds.
-z - Decreases the value of the variable by 1/second until zero is reached. At zero the variable will be unset.

Parameters

<%var> - The variable to set.
[value] - Value to set the variable to. (can be a single arithmetic expression 1 + 1, 2 / 2 etc)

Example

alias example {
;Create a variable and set a value.
/set %var Countdown:

;Print the value
/echo -a %var
;Set the value to 3, decrease once per second
/set -zs %var 3
}

Updated by Per Amundsen about 10 years ago · 1 revisions

Also available in: PDF HTML TXT