Usually an if in Smalltalk looks like this
condition
ifTrue: [ ... ]
ifFalse: [ ... ].
However, I can not find whether it is allowed to omit one of the parts, such as ifTrue: ..
or ifFalse ..
.
Is there a manual that I am missing? I cannot find it.
Pharo Smalltalk for example knows
ifTrue:
ifTrue:ifFalse:
ifFalse:
ifFalse:ifTrue:
I think other dialects understand similar messages. They are part of the ANSI Smalltalk Standard.