I tried to play around with bash, and even tried documentation and few threads though I cannot seem to get it right.
S=(true false) if (( ${S[0]} || ${S[1]} )) t
Instead of S=(true false), you need to create your array like this:
S=(true false)
S=(1 0)
Then this if block:
if (( ${S[0]} || ${S[1]} )) then echo "true" else echo "false" fi
will output:
true
Please note that true/false are treated as literal strings "true" and "false" in BASH.