Data commit

This commit is contained in:
Ingy döt Net 2023-07-01 11:58:00 -04:00
parent 7387c8f97b
commit cb5bb5e222
199093 changed files with 3378972 additions and 0 deletions

View file

@ -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

View file

@ -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

View file

@ -0,0 +1,5 @@
(a > 0) or:(b > 10)
ifBoth:[ 'both' printCR]
ifFirst:[ 'only first' printCR ]
ifSecond:[ 'only second' printCR ]
ifNone: [ 'none' printCR ]

View file

@ -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
]

View file

@ -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 ]