Difference between revisions of "Category:Variables"
From Scriptwiki
(added some info about variables) |
|||
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]] |
Revision as of 13:03, 25 April 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.