Anonymous user
Conditional structures: Difference between revisions
no edit summary
PatGarrett (talk | contribs) m (→{{header|ALGOL 60}}: Superfluous blanks suppressed) |
No edit summary |
||
Line 3,866:
}}
</lang>
=={{header|Ring}}==
'''if-but-else-ok'''
<lang ring>If x == 1
SomeFunc1()
But x == 2
SomeFunc2()
Else
SomeFunc()
Ok</lang>
'''Switch'''
<lang ring>Switch x
On 1
SomeFunc1()
On 2
SomeFunc2()
Other
SomeFunc()
Off</lang>
=={{header|Ruby}}==
|