I've been searching the internet and can't find an answer to this. Im trying to figure out how to negate a whole expression befor an if. I'll explain below.
Let's say
x=0
y=1
[[ x = 0 && y = 0 ]] (this is false) I would like to negate this whole boolean condition. To negate the above expression in other languages I can do something like this
![[ x = 0 && y = 0 ]] returns true
is there something similar in UNIX?
I tried
if ![[ x = 0 && y = 0 ]]; then
............
fi
but this doesn't work it doesn't go into the if statement.