I'm not sure when Mixed Logic came into the FANUC control, but with Mixed logic you can do your first line of code. Mixed logic is the option with the parathesis '()'. Look on the second page of the IF menu. Should look something like IF(...)....I think.
But, if you dont' have mixed logic, i would do the inverse of what you want and then jump over your DO=True
1. IF R=/=1 or R=/=1, JMPLBL