Break

From GECK
Jump to: navigation, search


A function added by the New Vegas Script Extender.

Description

Used only inside of a While or Foreach loop block to immediately exit the loop, bypassing it's subsequent lines and ignoring it's condition. See the loop function pages for further information.

Syntax

[help]
Break

Example

While(iCount > 0)
   ; do things
   if (someConditon == true)
      Break
   endif
loop
foreach Element <- Array
   ; do things
   if (someConditon == true)
      Break
   endif
loop 

See Also