You can execute multiple commands on a single line like this:
Will execute both commands, whatever append after the first one.
If you want to execute 1 command, than execute a second one only if the first one succeed, you have to use this:
The && is the binary AND operator. When you use it with commands, the line is evaluate as a Boolean expression. To be TRUE (succeed), the expression must have both parts TRUE. If the first one is FALSE (the command fail), the system do not need to evaluate the second one since "FALSE && whatever" is always FALSE.
You can use this with multiple commands
command1 && command2 && command3 && command4
You can also mix it with the OR operator (two pipes ||), but it make code very difficult to understand. If you want to execute something more complex, use the if statement.
And also check this page for more information: