How do I finish this widget

If your range will always be 40, you could do something like floor((InValue - 1) / 40) and pass the resulting int to a switch node.

Results would be:

  • (40-1)/40 = 0
  • (41-1)/40 = 1
  • (80-1)/40 = 1
  • (81-1)/40 = 2
1 Like