logic_case can be told to fire a specific set of Case outputs when you send it an InValue input.
Name your case values like this. The names correspond to the math_counter values you want stuff to happen with:
This is what the logic_case's Outputs tab would look like:
Then set up your math_counter:
OutValue fires
each time the math_counter's value is changed. So if you plan for something to happen on
every math_counter value (say you have five buttons) then that's what you probably want to use.
If you
only want something to happen when the math_counter hits 5, then you set its
Maximum Legal Value to
5 and you use the
OnHitMax output instead. That fires when the math_counter hits its maximum value. The maximum value is clamped, so it will never go higher than that.
OnGetValue only fires when you send the math_counter the
GetValue input. It's a good way of keeping track of a number, and then outputting it on demand. Not sure what you need all this for, but that's just so you know.
See the inputs and outputs information for this entity at the wiki.