Continuing with the same project. I have run into this problem many times over the years and I have yet to understand it. Why does this "If Then" statement fail to compile.
Code:
    if Bvar = 0 then Cimage
        else Avar = Bvar
        gosub GetImage
    endif
I can rewrite it in any form with the same results. It does not compile.
I get an error code "Endif without a If...Then statment. It seems like a no brainer but I just don't' understand what I'm doing wrong.