SELECT statement examples

select statement without default case label

select x of

case 1

	a = b
	break

case 2

	a = b + c
	break

case 3

	a = b - c

end_select

It is equivalent to:

if x == 1 then

	// case 1

	a = b

else if x == 2 then

	// case 2

	a = b + c

else if x == 3 then

	// case 3

	a = b - c

endif