Is there an if-function with blueprints which works with float?

I want to switch between two projectiles I can fire in my fps and I need an if-function to switch between these two projectiles.

Where are you getting the float from? You could turn that float into a bool by comparing it with >, <, ==, etc. and then get that result as a bool to use for a Branch(which is basically an if function.)