Branching help - Endless loops

Long Explanation

Have you confirmed that this error occurs when the choice is active (check the flags using the debug tools)? Additionally, when replaying/testing, you may have actually gained the APPROACH_GREG_FIRST_CHOICE_RAILEY_RYANBRANCH flag. If this flag exists, then it should trigger that particular loop, as that is the behavior that it has been programmed to do. This will not be an issue for your readers as long as they cannot have both of those two flags.

Once again, if you have gained all of the flags, then this is the behavior that is expected from if statements. I have had difficulty reproducing these errors.

For clarity:
In an if-elif-else statement, there is a specific order of operations.
Say our setup is:

if (a) {*do action a*}
elif (b) {*do action b*}
else {*do action c*}

If a is true, only action a will be done (regardless of the value of b).
If b is true and a is false, action b will be done.
If neither a nor b is true, action c will be done.
(truth values for episode are whether or not a flag has been gained)

I don’t believe that there is currently an issue with the script, however it might be.
I suspect that you have some flags already selected when you are testing out your story, which is causing flags that should never occur together to both be gained. (The portal doesn’t clear things very usefully)
If this is not the case, then you should make sure to check where certain flags are being gained, in order to make sure that flags are not being given when they should not be.