On September 25, 2007 at 05:55, Ernie Bornn-Gilman said...
Not at all true. You operate the Flag Test to determine
the state of the Flag so that the next command,
IF flag is set do this, ELSE do that
will know the state of the flag. If you don't do the
Flag Test, the IF/ELSE command will always act as though
the flag has not been set.
What still doesn't make sense to me is that the Flag Test
is needed at all. I would think that the operation of
"IF Flag is Set" would include looking at the flag to
see if it is set, but it doesn't. That's what I said
that I think is dumb.
Hey, maybe I'm wrong about this. But my experience has
been that IF/ELSE statements work when preceded by a Flag
Test and don't work when not.
Ernie
The Flag-Test and the If/Else statement are the same command in RTI-TTD. It always starts with a test for a Set condition and then performs the programmed steps that follow, according to whether they're before or after the Else.
The Flag-Set or Flag-Clear (or Toggle) that has occurred prior to the Test will determine on which side of the Else the program flows.