$$

From Scriptwiki
Revision as of 00:35, 2 October 2008 by Aca20031 (talk | contribs) (Added category...)

(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to: navigation, search

Any identifier can be prefixed with another $ to prevent execution without a certain parameter.

For example, using $$1 in a command means the command will only run if $1 is filled.

If the specified identifier does not exist, execution of commands will be halted.

You can also use $$?1 or $?1 which will try to fill the value with parameter one if it exists. If parameter one doesn't exist, it will ask for it. In the first case the parameter is necessary for the command to be executed, in the second case it isn't.

Example

/op $$1

Will run the /op command if $1 is filled.

/nick $$gettok(%nicks,5,44)

Will run the /nick command if a 5th comma-delimited token in %nicks exists.

See Also