mIRCWikipedia: mIRC is an Internet Relay Chat (IRC) client for Windows with an integrated scripting language allowing the creation of extensions.[3] The software was first released in 1995 and has since been describ... does not have arrays. The nearest and best alternative to arrays in mIRC, is dynamicly named variables. For example, %var1, %var2, %var3, %var4 etc.
To set a dynamically named variable, you simply join two variables together, using square brackets, as follows:
set %var [ $+ [ %i ] ] MY VALUE
This code shows you how to emulate an array, using this method:
set %i 1
while (%1 <= 10) {
set %var [ $+ [ %i ] ] %stuff_variable
}
while (%1 <= 10) {
set %var [ $+ [ %i ] ] %stuff_variable
}
Square brackets are redundant there. Use “set %var $+ %i”