R3vo/Sandbox – User

From Bohemia Interactive Community
Jump to navigation Jump to search
m (Blanked the page)
Tag: Blanking
mNo edit summary
Line 1: Line 1:
 
{| class="wikitable"
|-
! Command !! Description !! Example !! Exit whole script? !! Return Value
|-
| [[breakOut]] || Breaks out of scope with given name. || {{HashLink|breakOut#Example 1|Example}} || {{Icon|checked}} || {{Icon|unchecked}}
|-
| [[breakTo]] || Breaks out of all scopes and returns to the scope with given name. || {{HashLink|breakTo#Example 1|Example}} || {{Icon|checked}} || {{Icon|unchecked}}
|-
| [[break]] || Skips all further loop iterations. || {{HashLink|break#Example 1|Example}} || {{Icon|checked}} || {{Icon|unchecked}}
|-
| [[breakWith]] || Same as [[break]] but will also return the given value. || {{HashLink|breakWith#Example 1|Example}} || {{Icon|checked}} || {{Icon|checked}}
|-
| [[continue]] || Skips current loop iteration and continues with the next one. || {{HashLink|continue#Example 1|Example}} || {{Icon|checked}} || {{Icon|unchecked}}
|-
| [[continueWith]] || Same as [[continue]] but returns the given value. || {{HashLink|continueWith#Example 1|Example}} || {{Icon|checked}} || {{Icon|checked}}
|-
| [[exitWith]] || Exits the current code scope. || {{HashLink|exitWith#Example 1|Example}} || {{Icon|checked}} || {{Icon|checked}}
|-
| [[throw]] || Example || Example || {{Icon|checked}} || {{Icon|checked}}
|-
| [[terminate]]  || Terminates script of given [[Script Handle]]. || {{HashLink|terminate#Example 1|Example}} || {{Icon|checked}} || {{Icon|unchecked}}
|}

Revision as of 13:01, 10 October 2021

Command Description Example Exit whole script? Return Value
breakOut Breaks out of scope with given name. Example Checked Unchecked
breakTo Breaks out of all scopes and returns to the scope with given name. Example Checked Unchecked
break Skips all further loop iterations. Example Checked Unchecked
breakWith Same as break but will also return the given value. Example Checked Checked
continue Skips current loop iteration and continues with the next one. Example Checked Unchecked
continueWith Same as continue but returns the given value. Example Checked Checked
exitWith Exits the current code scope. Example Checked Checked
throw Example Example Checked Checked
terminate Terminates script of given Script Handle. Example Checked Unchecked