え、まさか、
hoge && FLAG=$TRUE || FLAG=$FALSE
 :
 :
if [ "$FLAG" -eq "$TRUE" ] then ・・・
if [ "$FLAG" -eq "$FALSE" ] then ・・・

とか書くつもり・・・?