Anonymous user
Null object: Difference between revisions
→{{header|Babel}}
Line 89:
=={{header|Babel}}==
In this example, we place nil on the stack, then perform an if-then-else (ifte) based on the value returned by the 'nil?' operator which returns true
<lang babel>{ nil { nil? } { "Whew!\n" } { "Something is terribly wrong!\n" } ifte << }</lang>
|