Squeak
  links to this page:    
View this PageEdit this PageUploads to this PageHistory of this PageTop of the SwikiRecent ChangesSearch the SwikiHelp Guide
Smalltalk ifTrue:
Last updated at 3:25 pm UTC on 14 January 2006
back selfStudy next

What we want to do: Smalltalk has the equivalent of the ifthenelse and the dowhile. Like any OO language, Smalltalk makes less use of "control structures", than procedural langauages. Here we want to learn about executing a simple if and else.

What you should know before doing this exercise
What's true? What's false? How Smalltalk implements ifTrue: and ifFalse:. What are Smalltalk's Boolean operators?

The exercise

Verify you got it

Feedback - Please update this page with corrections and comments. This is a Wiki, so feel free to make corrections and extensions to the instructions above. Also feel make suggestions comments below. The more specific your comments the better.