From wiki.ginstr.com
Revision as of 16:36, 12 July 2017 by Mark (talk | contribs) (formatting)
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to: navigation, search

gn:act_while

Description
Action used to repeat the execution of actions, while parameter value is the same as compared value.
Action returns
void

Action signatures

Repeat the execution of commands based on value

[gn:act_while]|[parameterSource,comparedSource;ACTIONS]
Parameter Description
parameterSource source from where the while action is using value as expression parameter
comparedSource source from where the while action is using value as expression comparsion parameter
ACTIONS list of actions which will be executed continuously until "while" expression returns false

Example

@variable/whileTrueParameter - 1st expression parameter
@variable/true - 2nd expression parameter
[gn:act_while]|[@variable/whileTrueParameter, @variable/true;[gn:act_calculate]|[@variable/counter, @variable/counter+1]]