RuleAPI:Procedural commands/While

From FlexRule Wiki
Jump to: navigation, search

Summary

This acts as the Do command, but the execution flow iterates inside the scope only if the condition parameter equals true.

Parameters

  1. condition
    1. Description: Name of a Boolean variable that checks the continuation of the iteration condition
    2. Mandatory: Yes
    3. Type: String (name of variable)

Internal Commands

ExitWhile

This command sends a break command to the execution flow iterating inside the While command.


Sample

  1. <While condition="count!=3">
  2.    <Var name="i" value="0"/>
  3.    <Var name="count" value="count+1" process="true"/>
  4. </While>