Control Structures: Difference between revisions

→‎[[OCaml]]: Moved to other articles
(→‎[[ColdFusion]]: Moved to other articles)
(→‎[[OCaml]]: Moved to other articles)
Line 23:
 
 
==[[OCaml]]==
[[Category:OCaml]]
===if-then-else===
'''Compiler:''' [[OCaml]] 3.09
let condition = true
if condition then
()//do something
else
()//do something else
 
===match-with===
match expression with
| 0 -> ()//do something
| 1 -> ()//do something
| n when n mod 2 = 0 -> ()//do something
| _ -> ()//do something
 
==[[Pascal]]==