Difference between revisions of "SkibUserMacros:Keywords for the algorithms of User Macros"

From Protoi Healing

Jump to: navigation, search
Line 26: Line 26:
 
|style="vertical-align:top; "|'''LOOP <condition>'''
 
|style="vertical-align:top; "|'''LOOP <condition>'''
 
|<number>
 
|<number>
|This loops until the <condition> is TRUE, or if a <number> is given (written as e.g. "<30>"), after 30 loops.
+
|This loops until the <condition> is TRUE, or if a <number> is given (written as e.g. "<30>"), it loops 30 times.
 
|-
 
|-
 
|style="vertical-align:top; "|'''LOOP-END'''
 
|style="vertical-align:top; "|'''LOOP-END'''

Revision as of 22:24, 5 February 2017

Keyword Parameters Description
BREAK Gets out of the current structure level. For example if you are in a LOOP, it will stop and leave the LOOP immediately and continue with the algorithm after the LOOP.
EXIT It will stop the execution of the UserMacro immediately.
IF <condition>, DO: Starts a conditional structure.
IF-ELSE DO:
IF-END
LOOP <condition> <number> This loops until the <condition> is TRUE, or if a <number> is given (written as e.g. "<30>"), it loops 30 times.
LOOP-END
MONITOR This orders the Skib to install some monitoring for a topic. This means, that some other AI(s) will get the order from Skib to 24/7 (or a given time) monitor a topic, and to send a signal, if some of the defined conditions take place. So this means, that Skib gets always an impulse to start the defined action, whenever it occurs. This may be with seconds in between, but also hours, days or more. Skib will always only have work with it, if something happens, that match the defined conditions.
MONITOR-END
TRY Skib will try to do whatever follows this TRY. Skib will continue the execution of the algorithm independent of the success.
TRY-ERROR If the belonging earlier TRY was not successful, Skib will execute whatever follows TRY-ERROR. If this is done and not order to finish the algorithm is given, Skib will continue the algorithm at next order.


If you have ideas for more KEYWORDS, please add them on the discussion page!