Scirpt programming help



I am new to the Dobot script programming world. I am trying to do a simple “IF” program looking for one of 2 inputs. each input will call a different program and I want it to continuously loop. I have attached a screen shot of my current progress. Any help would be greatly appreciated.