RosettaCodeData/Task/Extend-your-language/Smalltalk/extend-your-language-5.st
2023-07-01 13:44:08 -04:00

5 lines
165 B
Smalltalk

If2 when:(a > 0) or:(b > 10)
ifBoth:[ 'both' printCR]
ifFirst:[ 'only first' printCR ]
ifSecond:[ 'only second' printCR ]
ifNone: [ 'none' printCR ]