I have this script which works on my linux machine
#!/bin/sh c=1 if [ $c == 1 ] then echo c is 1 else echo c is 0 fi
But when I use this in
use /system/bin/cmp for equality test. if you need numerically test, substitute $(($c == 1)) with $c
#!/system/bin/sh echo $c >/tmp/a echo 1 >/tmp/b if cmp /tmp/a /tmp/b echo c is 1 else echo c is 0 fi