This is now supported in r401 with the new method createLoopingConditionContext()
. You can use it like this (sample code for a 'TestLoop' condition that repeats a number of times):
> TestLoop(count)
{
const loopCtx = this.runtime.sdk.createLoopingConditionContext();
for (let i = 0; i < count; ++i)
{
loopCtx.retrigger();
if (loopCtx.isStopped)
break;
}
loopCtx.release();
}
Hi, Ashley!
The property sdk
appears to be undefined on TypeScript types.
createLoopingConditionContext
is -indeed- defined on a ISDKUtils
type which is never referenced or used in any other type-def file.
FYI, I just generated the type-def files using version r403
.
Is this a bug?
Thank you.