SELECT statement examples

out of order case statements

select x of

case 5

	a = b
	break

case 1

	a = b + c
	break

case 7

	a = b - c

end_select

It is equivalent to:

if x == 5 then

	// case 5

	a = b

else if x == 1 then

	// case 1

	a = b + c

else if x == 7 then

	// case 7

	a = b - c

endif