Also depends on what you assign to. If you read an if/else statement, you have to check whether both branches assign to the same value. If that’s a complex expression, that isn’t trivial.
Fortran’s ASSOCIATE construct can help with that.
associate (x=>(complicated variable))
if (test) then
x = …
else
x = …
end if
end associate
Besides, it blends well with functional programming where side effect are better avoided.