RosettaCodeData/Task/Conditional-structures/Slate/conditional-structures-1.slate
Ingy döt Net d066446780 langs a-z
2013-04-10 22:43:41 -07:00

4 lines
241 B
Text

"Conditionals in Slate are really messages sent to Boolean objects. Like Smalltalk. (But the compiler might optimize some cases)"
balance > 0
ifTrue: [inform: 'still sitting pretty!'.]
ifFalse: [inform: 'No money till payday!'.].