[Solved] if-else statement only works in a specific order and I don’t know why [closed]

[ad_1]

In the first code fragment, you are not assigning to d at all. Assignment (=) operator assigns the rvalue (right hand side) to the lvalue (left hand side). This is very standard syntax.

[ad_2]

solved if-else statement only works in a specific order and I don’t know why [closed]