Why 'if' node doesnt affect the performance?

I’ve read about HLSL a bit and I realized that branching isnt good for performance.
LMGTFY - Let Me Google That For You google helped me a lot and explained some things about hlsl