Can someone please simplify the following 2 lines of code.

Whandall:
No, it's a clarification, nothing in the code is made simpler.

No, it was too simple for him.

Simple for you maybe but complicated for the OP.

He was obviously aware of the problem caused when an if test is terminated with a semicolon. Splitting the code into several discrete lines and putting the code block in curly braces made the code simpler to understand but did not, in fact, simplify the coding