1: if first condition
then
2: return one
3: else if second condition
then
4: return two
5: end if
6: do something
7: and another
8: if third condition
then
9: for all items do
10: do some more
11: end for
12: return three
13: else
14: return four
15: end if