• 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 Two Outcomes

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


A selection statement, commonly referred to as an IF statement, lets you decision between one or more outcomes, or results.


Two outcomes means you are trying to choose between ACTION #1 and ACTION #2.


if <condition> then

   // do something because the condition is TRUE

   put "The condition was true"


   // do something because the condition is FALSE

   put "The condition was false"

end if


You may also wish to consider a decision with only one outcome, or a decision with multiple outcomes.


Comments (0)

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