SELECT statement examples

case statement list fall through

select x of

case 1

	a = b
	break

case 2

	a = b + c

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

	goto lab1
	
else if x == 3 then

lab1

	// case 3

	a = b - c

endif