Turing Reference - Selection Statement with Single Outcome


A single decision means you want the program to DO SOMETHING or DO NOTHING.  Use a simple IF/THEN statement to accomplish this:

 

if <condition> then

   % do something if the condition is TRUE

   put "The condition was true!"

end if

 

You may wish to consider a decision with two choices, or a decision with multiple choices.