Conditional structures: Difference between revisions

Content added Content deleted
(Add Ursalang example)
m (Ursalang: give more of a clue about the joke in the code)
Line 8,054: Line 8,054:
===if…else===
===if…else===
<syntaxhighlight lang="ursalang">
<syntaxhighlight lang="ursalang">
if x > 9000 { "That's impossible!!!" } else { "Ok, I guess" }
if energyLevel > 9000 { "That's impossible!!!" } else { "Ok, I guess" }
</syntaxhighlight>
</syntaxhighlight>