Data commit
This commit is contained in:
parent
7387c8f97b
commit
cb5bb5e222
199093 changed files with 3378972 additions and 0 deletions
|
|
@ -0,0 +1,11 @@
|
|||
balance > 0
|
||||
ifTrue: [Transcript cr; show: 'still sitting pretty!'.]
|
||||
ifFalse: [Transcript cr; show: 'No money till payday!'.].
|
||||
|
||||
balance < 10 ifTrue:[ self goGetSomeMoney ].
|
||||
|
||||
balance > 1000 ifTrue:[ self beHappy ].
|
||||
|
||||
(balance < 10)
|
||||
ifFalse:[ self gotoHappyHour ]
|
||||
ifTrue:[ self noDrinksToday ].
|
||||
|
|
@ -0,0 +1 @@
|
|||
abs := x > 0 ifTrue: [ x ] ifFalse: [ x negated ]
|
||||
|
|
@ -0,0 +1,5 @@
|
|||
...
|
||||
trueAction := [ ... do something ].
|
||||
falseAction := [ ... do something else ...].
|
||||
...
|
||||
abs := x > 0 ifTrue:trueAction ifFalse:falseAction. "3)"
|
||||
|
|
@ -0,0 +1,9 @@
|
|||
|x|
|
||||
x := 1.
|
||||
value :=
|
||||
x caseOf: {
|
||||
[1]->['one'].
|
||||
[2]->['two'].
|
||||
[3]->['three']
|
||||
}
|
||||
otherwise:['none of them'].
|
||||
Loading…
Add table
Add a link
Reference in a new issue