From WikiChip
Difference between revisions of "mirc/commands/break"
m (PatrolBot moved page /break command - mIRC to mirc/commands/break: per new naming convention) |
m (bot: correcting title) |
||
Line 1: | Line 1: | ||
− | {{mIRC menu}} | + | {{mirc title|/break Command}}{{mIRC menu}} |
The '''/break command''' terminates the execution of the nearest enclosing loop in which it appears. | The '''/break command''' terminates the execution of the nearest enclosing loop in which it appears. | ||
Revision as of 03:59, 4 January 2015
Commands & Identifiers
Basics
Events
Matching Tools
Data Storage
Control Structures
GUI Scripting
Sockets
Advanced Scripting
Additional Resources
Security
Other
Template:mIRC menu The /break command terminates the execution of the nearest enclosing loop in which it appears.
Synopsis
/break
Switches
None
Parameters
None
Example
/* Assume we have the following global variables: %foo = foobar %bar = example $isValue(testing) -> $false $isValue(foobar) -> %foo */ Alias isValue { ;Declare a counter variable and a returning variable var %count 1, %found $false ;Loop through all the variables while (%count <= $var(*)) { /* If we found one matching our argument, get the value and break out of the loop */ if ($var(*,$v1).value == $1-) { %found = $var(*,%count) ;break break } inc %count } ;return value return %found }
Compatibility
Added: mIRC v5.7
Added on: 02 Feb 2000
Note: Unless otherwise stated, this was the date of original functionality.
Further enhancements may have been made in later versions.
See also
mIRC commands list