Thanks for your help.

It needed a double bracket conditional compound command [[ ... ]]

https://stackoverflow.com/questions/...h-if-condition