Skip to content

Stop Loop

StopLoop stops the loop based on the value of a bool variable.

Same as break in traditional programming.

Parameters

Parameter Description
Variable The bool variable to check.
Test If Check if True or False.

Stop Loop Variants

PlayMaker also includes Stop Loop variants that use a condition test:

  • Stop Loop (CheckFloat) checks a float value against a condition.
  • Stop Loop (CheckInt) checks an integer value against a condition.
  • Stop Loop (CheckString) checks a string value against a condition.
  • Stop Loop (CheckGameObject) checks a GameObject value against a condition.
  • Stop Loop (CheckVariable) checks any supported variable type against a condition.

These variants stop the current loop iteration when the condition evaluates true.