Skip to content

While Loop Tile#


alt text A Tile that calls the output of another tile when the condition is True, repeating this operation until the condition becomes False

Description#

Description

  • Calls the output wired to the Do if the Condition is True
  • The loop will do the same operation again after the amount of time specified in Delay
  • THe loop will stop when the Condition becomes False

Inputs#

Do#

Info
  • Type
    Accepted types: Any
    
  • Usage
    Gets called if the 'Condition' is True
    

Condition#

Info
  • Type
    Boolean value defaults to False
    
    Accepted types: Boolean
    
  • Usage
    Is checked to determine whether or not to call 'Do' and loop again
    

Delay#

Info
  • Type
    Numeric value, defaults to 1
    
    Accepted types: Integer, Float
    
  • Usage
    The amount of time in second between each iteration of the loop
    

Outputs#

Start Loop#

Info
  • Return
    None
    
  • Usage
    Starts the loop
    

Real Signature#

Signature

  • A plain language description of the function associated with the tile
    def while_loop(Do, Condition, Delay):
        if Condition is True:
            Do()
            schedule(while_loop(Do,Condition,Delay),wait=Delay)