Skip to content

test_04_if_then_else

David Pollak edited this page Jan 13, 2012 · 1 revision

If then else

The if/then/else construct is built into the syntax of the language. Here's an example.

f a = if a then 3 else 4 /* if/then/else */