Skip to content

Repeat command

Alvin Cheng edited this page Feb 12, 2023 · 2 revisions

Description

This is the repeat command, this command allows a certain set of functions or commands to be repeated a certain amount of times specified in the first argument. In other words, the function in parameter 2 will be run however many times specified in the first parameter. Here is an example below!

Note

You can also declare and call functions in the second parameter if you want to make your codebase a lot cleaner. More information regarding functions and methods in chat script can be found here.

Example

repeat TIMES $FUNC_FUNCTION;

Clone this wiki locally