Difference between revisions of "Category:Variables"
From Scriptwiki
m (temp page) |
m (Remove temp page) |
||
Line 2: | Line 2: | ||
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. | 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.