Expertsystemen

 

Adding the repeating flow logic

In order to add repeated actions you will have to follow a particular sequence. The first thing you will have to do, is to add the repeat logic itself. You can do this by clicking Actions > Repeat in the menu. For now, add a counter by the name of counter, as it basically counts the number of times that we are repeating. Press [OK]. The Actions window now shows a flow statement fenced off by two items in the list: repeatuntil. Actions that you will later on insert between those two will be repeated.

adding a repeat
adding a repeat

However, the loop won’t work yet, as the looping will go on forever as there is no end condition set, and there is not yet any action in between repeat and until. In other words: there is nothing to be repeated. Let’s move on to the next part and find out how to add the end condition and some repeatable action.