We know that it is possible to do if command ; then something ; fi, where the status returned from command is interpreted as boolean (0==true). We also know that is ok doing if [[ $a > $b || $c == yes ]] ; then something; fi.
But I'm curious because we are not allowed to combine commands like Boolean expressions using "if", as in if cmd1 || cmd2; then ; something; fi. Or can we?
There is other ways of doing this without "if" or even with nested if. However, I'm interested on using if :-).
Appreciate any comment.