Quantcast
Channel: Active questions tagged fish - Stack Overflow
Viewing all articles
Browse latest Browse all 92

'At least one out of multiple' conditional

$
0
0

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


Viewing all articles
Browse latest Browse all 92

Trending Articles