• If you are citizen of an European Union member nation, you may not use this service unless you are at least 16 years old.

  • Stop wasting time looking for files and revisions. Connect your Gmail, DriveDropbox, and Slack accounts and in less than 2 minutes, Dokkio will automatically organize all your file attachments. Learn more and claim your free account.


Turing Reference - Selection Statement with Single Outcome

Page history last edited by Steve Sweeney 6 years, 9 months ago

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.

Comments (0)

You don't have permission to comment on this page.