I want to say:
command1command2command3if not at least one of these yields status code 0, then launch command4
The goal is to always execute all of them, and in case all fail, then execute command number 4.
I tried creating a counter, and that seems not very elegant, and all different combinations with and/or, if else and so on, also look clumsy/don't work.
How would you write this?
Thanks a lot