GSE: Sequences, Variables, Macros

GSE: Sequences, Variables, Macros

6M Downloads

Internal Loop Macro type

TimothyLuke opened this issue ยท 0 comments

commented

Create the ability to define macros that have an internal loop.
Sequences['x'] = {
SpecID = x,
Author = "a",
helpTxt = "stuff",
loopstart=N,
loopstop =N,
looplimit = N,
PreMacro = [[]],
Step1,
Step2,
Step3,
Step4,
Step5,
Step6,
PostMacro = [[]],
}

Use Case 1: Startup run once

Set InternalLoopStart =3
Outcome:
Step1
Step2
Step3-6 will follow stepfunction
then reset back to Step1

Use Case 2: Startup then iterations

Set InternalLoopStart =3
Set InternalLoopIterations =20
Outcome
Same as Use Case 1 but it resets after 20 iterations of steps 3-6

Use Case 2: Startup then iterations the closeout

InternalLoopStart =3
InternalLoopIterations =20
InternalLoopFinish = 5
Outcome
Step1
Step2
Steps3-5 run 20 times based on StepFunction
Step6
then reset back to Step1