Difference between revisions of "Category:Variables"
From Scriptwiki
m (Remove temp page) |
|||
(2 intermediate revisions by 2 users not shown) | |||
Line 1: | Line 1: | ||
− | + | Variables are a way in mIRC (and in every other language) to store (temporary) data for convenience and modification reasons. | |
+ | |||
+ | In mIRC, all variables are either [[Local_Variables|local]] or global. Local variables are lost as soon as the executing script ends and global variables are stored until they are unset. Therefore local variables are good for really temporary storing inside the script, for example while loop iterators (increasing some variable until the while loop's condition isn't [[$true]] anymore) and global variables are good for storing data for a longer duration, for example keeping track of a channel's peak. | ||
[[Category:mIRC_Help]] | [[Category:mIRC_Help]] |
Latest revision as of 14:50, 9 November 2006
Variables are a way in mIRC (and in every other language) to store (temporary) data for convenience and modification reasons.
In mIRC, all variables are either local or global. Local variables are lost as soon as the executing script ends and global variables are stored until they are unset. Therefore local variables are good for really temporary storing inside the script, for example while loop iterators (increasing some variable until the while loop's condition isn't $true anymore) and global variables are good for storing data for a longer duration, for example keeping track of a channel's peak.