Indenting and Out-denting of Rules

Ethan777

Singapore Railfan
I need help about the indenting and outdenting of rules. What are they actually? How are they to be correctly used to make the session script work most of the time? When is it the correct time to indent the next rule or outdent it or to keep them at identical position? When is it the time to outdent the next rule back to the extreme left of the rule box itself?

I do need the help there as I am doing trial and error with the session script with indents and outdents of some rules and that's time consuming. I need a more efficient way to test the session script. Any advice? Thanks! :)
 
The term "outdent" does not apply here. Outdenting means positioning the rule outside of the left margin, which is not possible,

All rules wait until their specified conditions are met before triggering or "firing".

A rule that is against the left margin will be active immediately the session starts. It will wait until the specified conditions for that rule are met and then "fire". This is a parent rule.

A rule below a parent but indented is a child of that parent.
A child rule will only become active when its parent rule has fired. When the child rule's conditions are met then the child will fire.
A rule below a child and indented is a grandchild and fires if it's conditions have been met and its parent (the child above) has fired.
A rule below an indented rule but not indented is active at the start of the session and is a new parent.

Regards

Trevor
 
The term "outdent" does not apply here. Outdenting means positioning the rule outside of the left margin, which is not possible,

All rules wait until their specified conditions are met before triggering or "firing".

A rule that is against the left margin will be active immediately the session starts. It will wait until the specified conditions for that rule are met and then "fire". This is a parent rule.

A rule below a parent but indented is a child of that parent.
A child rule will only become active when its parent rule has fired. When the child rule's conditions are met then the child will fire.
A rule below a child and indented is a grandchild and fires if it's conditions have been met and its parent (the child above) has fired.
A rule below an indented rule but not indented is active at the start of the session and is a new parent.

Regards

Trevor
Then what if 2 rules are like this

RULE 1
RULE 2​
 
RULE 1 is an orphan and will not activate until a parent is positioned above it and not indented.

RULE 2 is a parent. If it were something like a "Display HTML" then it would display immediately at the start of the session.

By placing a Time Check rule as the parent of RULE 1 and setting a time of 30 seconds after the session start time you could make RULE 1 display 30 seconds after RULE 2 displayed.

By experiment. giving a child rule a double-indent has no impact, i.e. it still displays when the parent is triggered.

Depending on how the chosen parent rule is designed, child rules on the same indent level will either trigger simultaneously or sequentially.

RULE A
[ ] RULE B
[ ] RULE C


Sequentially (ordered list) means that RULE C will only trigger when RULE B has completed. This behaviour needs to be established by experiment.

Regards

Trevor
 
Back
Top