//debug + 1
echo may want to set debug + 1

creg CX0=0 CX1=1 CX2=2
freg FX0=0 FX1=1

creg CX0 CX1 CX2
freg FX0 FX1

if [ CX0 == CX0 ] println "CX0==CX0"
if [ CX0 != CX1 ] println "CX0!=CX1"
if [ CX2 >  CX1 ] println "CX2>CX1"
if [ CX2 >= CX1 ] println "CX2>=CX1"
if [ CX0 <  CX1 ] println "CX0<CX1"
if [ CX0 <= CX1 ] println "CX0<=CX1"
if [ CX0 == 0   ] println "CX0==0"
if [ CX0 != 1   ] println "CX0!=1"
if [ FX0 ] goto LTRUE 
println "FX0 is false"
goto LCONT
:LTRUE
println "FX0 is true"
:LCONT
if [ ! FX0 ] println "!FX0"
if [ FX1 && FX1 ] println "FX1&&FX1"
if [ ! FX0 && ! FX0 ] println "!FX0&&!FX0"
if [ FX0 || FX1 ] println "FX0||FX1"
if [ ! FX0 || FX0 ] println "!FX0||FX0"
if [ ECHO ] println "echo:  isset $echo"
if [ ! ECHO ] println "echo:  unset $ECHO"

creg CX0=3
:FOO
if [ CX0 == 0 ] goto QUIT
if [ CX0 == 2 ] freg FX0=1
creg CX0--
println "looping CX0=$CX0 FX0=$FX0"
goto FOO

:QUIT
println "done"
end
