Two ideas

I don't comprehend why one would assign a value as an If condition.
I'm missing the logic behind why that is useful.