Firstly you could replace the &&
with ;
which is equivalent to the line breaks in your multiple-line code. Secondly I don't think you need the &&
(or ;
) after the then
statement.
The difference between the &&
and ;
line breaks is that &&
will run the next block of code if and only if the previous block has executed properly.