The current Switch on Int only support a list from 0 adding one (0,1,2,3,4,5,6,7,8,9) and you cannot put custom numbers like a list of (12,25,45,67,78,98,99).
*Will be nice if add other switch for floats, because now for this things you need make and convert the numbers to strings and create a list.
Switching on floats is not recommended because it is diffucult to be sure they are exactly equal to the value you want to check. Checking floats whether if they are between two value range or not is more convenient. Your best shot is PumpkinDaoist’s answer.
Oh sorry. I didn’t noticed the date of the question. Just see at the top of the page because of the answer.
But anyway it is important to talk about floats because it is not good to check equality or switch on them because of the rounding error. But I agree configurable output pins required when switching on ints.