Anonymous user
Conditional structures: Difference between revisions
no edit summary
No edit summary |
No edit summary |
||
Line 1,972:
<lang slate>[p isAtEnd] whileFalse: [p next evaluate]].</lang>
=={{header|SIMPOL}}==
===if-then-else===
<lang simpol>if x == 1
foo()
else if x == 2
bar()
else
foobar()
end if</lang>
===ternary if function===
<lang simpol>.if(x == 1, "hello", "world")</lang>
=={{header|Smalltalk}}==
|