Input different values to a node based on condition

I’ve created a really simple BP which places static meshes along a spline. I use the MakeTransform node to set
the location, rotation and scale for every mesh along the spline. I get these values from ‘Get X at distance along spline’ nodes. See image below

This works really nicely, but I’m running into cases where I don’t want certain meshes to be affected by spline’s rotation and scale. For example if I’m placing something vertically. I’m thinking of using a boolean to set wether the splines rotation and scale should affect the meshes.

I’m new to BPs how do I do something like this? I tried using the Branch node but that requires me to duplicate a lot of nodes in my BP.

You can use Select node, just like this

It works, thanks!