Skip to content

ModelEntities WhileLoop

mitchell-conrad edited this page Jan 19, 2021 · 1 revision

Table of Contents

While Loop

The While Loop entity repeatedly executes the chain of workload it contains while the Boolean Expression in the left section evaluates to true. A Boolean Expression entity is automatically constructed when a While Loop is constructed. The image on the right displays what a While Loop looks like when it is first constructed.

The While Loop example on the right is equivalent to the following C++ code:

void tick () {

    bool work_finished = false;

    while (work_finished == false) { 
         work_finished = CustomWorkClass::doWork();  // doWork() returns a bool stating whether all the work is done
    }
}

Parent

Can be adopted by the below entities:

Children

Can adopt the below entities:

Dependents

This entity does not have any dependent entities.

Dependencies

This entity does not depend on any entities.

Editable Data Fields

This entity does not have any editable data fields.

Edges

This entity does not have any visible edges attached to it.

Clone this wiki locally