How to I determine which variable to use based on a boolean?

That’s exactly what I need. Thanks!