((..)) is undefined.variable=1
if ((variable)); then
echo variable is not zero
fibash
supports standalone ((..)) natively.
For POSIX compliance, use
variable=1
if [ "${variable}" != 0 ]; then
echo variable is not zero
fiShellCheck is a static analysis tool for shell scripts. This page is part of its documentation.