Data commit
This commit is contained in:
parent
7387c8f97b
commit
cb5bb5e222
199093 changed files with 3378972 additions and 0 deletions
|
|
@ -0,0 +1,3 @@
|
|||
or:condition2 ifBoth:bothBlk ifFirst:firstBlk ifSecond:scndBlk ifNone:noneBlk
|
||||
"I know for sure, that I am true..."
|
||||
^ condition2 ifTrue:bothBlk ifFalse:firstBlk
|
||||
|
|
@ -0,0 +1,3 @@
|
|||
or:condition2 ifBoth:bothBlk ifFirst:firstBlk ifSecond:scndBlk ifNone:noneBlk
|
||||
"I know for sure, that I am false..."
|
||||
^ condition2 ifTrue:scndBlk ifFalse:noneBlk
|
||||
|
|
@ -0,0 +1,5 @@
|
|||
(a > 0) or:(b > 10)
|
||||
ifBoth:[ 'both' printCR]
|
||||
ifFirst:[ 'only first' printCR ]
|
||||
ifSecond:[ 'only second' printCR ]
|
||||
ifNone: [ 'none' printCR ]
|
||||
|
|
@ -0,0 +1,7 @@
|
|||
If2 class method:
|
||||
when:cond1 or:cond2 ifBoth:both ifFirst:first ifSecond:scnd ifNone:none
|
||||
^ cond1 ifTrue:[
|
||||
cond2 ifTrue:both ifFalse:first
|
||||
] ifFalse:[
|
||||
cond2 ifTrue:scnd ifFalse:none
|
||||
]
|
||||
|
|
@ -0,0 +1,5 @@
|
|||
If2 when:(a > 0) or:(b > 10)
|
||||
ifBoth:[ 'both' printCR]
|
||||
ifFirst:[ 'only first' printCR ]
|
||||
ifSecond:[ 'only second' printCR ]
|
||||
ifNone: [ 'none' printCR ]
|
||||
Loading…
Add table
Add a link
Reference in a new issue