Why IF material node gets converted to A = B ? C : D

I don’t know how things are in directx 12 but previously all branches where evaluated, this is one of the reasons why using IF statement should be avoided.