does ocr work with if then else statements?