While

Loop execution based on condition and/or iterations

Subclass of Component.

Module: core

Methods and properties

Main methods and properties


__init__

Arguments:

  • schema (Component): Component that will be executed.

  • condition (Optional[ConditionProtocol], optional): Condition for loop execution. If equals to None, loop will not be bounded by condition. Defaults to None.

  • max_iterations (int, optional): Maximum iterations before exit. If equals to -1, will not be bounded by number of iterations. Defaults to -1.

  • name (Optional[str], optional): Name for identification. If equals to None, class name will be used. Defaults to None.



Last updated