OTX Reference  
OpenTestSystem.Otx.Core.Nodes.Node.CompoundNode.Loop.LoopRealisation.LoopConfigurationHeader.LoopConfigurationRealisation.WhileLoop Class Reference

Loop with condition More...

Inheritance diagram for OpenTestSystem.Otx.Core.Nodes.Node.CompoundNode.Loop.LoopRealisation.LoopConfigurationHeader.LoopConfigurationRealisation.WhileLoop:
Inheritance graph

Public Attributes

System.Boolean isPostTested
 Indicates whether the condition is tested at the beginning (default = False) or end (True = do-while) of the loop. More...
 
BooleanTerm test
 The while loop is being repeated until the condition returns true. More...
 

Detailed Description

Loop with condition

The (do-)while-loop is a generic loop with a test that controls repetition of the included flow. The test is a boolean term. As long as the test condition holds, the loop flow is executed repeatedly. It can be configured whether the test shall be checked before (while-loop) or after the first flow execution (do-while-loop).

Syntax
// while
while (BooleanTerm test) : LoopName
{
...
}
// do-while
do
{
...
} while (BooleanTerm test) : LoopName
BooleanTerm test
The while loop is being repeated until the condition returns true.
Definition: Core.cs:5557
Example
// Local Declarations
Integer Integer1;
// Flow
while (Integer1 < 10) : WhileLoop1
{
Integer1 = (Integer1 + 1);
}
do
{
Integer1 = (Integer1 + 1);
} while (Integer1 < 10) : WhileLoop2

Member Data Documentation

◆ isPostTested

System.Boolean OpenTestSystem.Otx.Core.Nodes.Node.CompoundNode.Loop.LoopRealisation.LoopConfigurationHeader.LoopConfigurationRealisation.WhileLoop.isPostTested

Indicates whether the condition is tested at the beginning (default = False) or end (True = do-while) of the loop.

◆ test

BooleanTerm OpenTestSystem.Otx.Core.Nodes.Node.CompoundNode.Loop.LoopRealisation.LoopConfigurationHeader.LoopConfigurationRealisation.WhileLoop.test

The while loop is being repeated until the condition returns true.