RosettaCodeData/Task/Conditional-structures/Smalltalk/conditional-structures-2.st

2 lines
50 B
Smalltalk

abs := x > 0 ifTrue: [ x ] ifFalse: [ x negated ]