Viewport/Render Selector Node
A custom geometry, to use different values for viewport and render modes, can be used with any other node. It takes 2 inputs and outputs one of them. If you're in viewport mode, the node will output the first input value, if you're in render mode it will output the second. Two different versions are provided, one for integers and one for floats. For honesty, they are pretty much the same, just more convenient for cleaner node groups.