SELECT statement examples

multiple case labels for the same statement list

select x of

case 1

	a = b
	break

case 2
case 4
case 6

	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  ||  x == 4  ||  x == 6 then

	// case 2
	// case 4
	// case 6

	a = b + c

else if x == 3 then

	// case 3

	a = b - c

endif