============================ More condition code examples ============================ -IAN! idallen@ncf.ca A) If the return code (RC) of every previous step is equal to zero then execute this step. execute IF RC = 0 execute IF 0 = RC skip IF 0 != RC COND=(0,NE) B) If the return code (RC) of every previous step is less than four then execute this step. execute IF RC < 4 execute IF 4 > RC skip IF 4 <= RC COND=(4,LE) C) Execute this step unless the return code of a previous step is bigger than 3. execute UNLESS RC > 3 execute IF RC <= 3 execute IF 3 >= RC skip IF 3 < RC COND=(3,LT) D) Don't execute this step unless a previous step returns a code bigger than 5. skip UNLESS RC > 5 skip IF RC <= 5 skip IF 5 >= RC COND=(5,GE) In better English: skip IF RC <= 5 execute IF RC > 5 Execute this step if the return code is greater than five. E) Unless a previous step returns a code of 2 or bigger, skip this step. skip UNLESS RC >= 2 skip IF RC < 2 skip IF 2 > RC COND=(2,GT) In better English: skip IF RC < 2 execute IF RC >= 2 Execute this step if the return code is greater than or equal to two. F) Don't execute this step if any previous step returns a code bigger than 5. skip IF RC > 5 skip IF 5 < RC COND=(5,LT) In better English: skip if RC > 5 execute IF RC <= 5 Execute this step if return code is less than or equal to five. G) Execute this step unless the return code of a previous step is less than four. execute UNLESS RC < 4 execute IF RC >= 4 execute IF 4 <= RC skip IF 4 > RC COND=(4,GT) In better English: execute IF RC >= 4 Execute this step if the return code is greater than or equal to 4. H) Unless the return code of a previous step is zero, skip this step. skip UNLESS RC = 0 skip IF RC != 0 skip IF 0 != RC COND=(0,NE) In better English: skip IF RC != 0 execute IF RC = 0 Execute this step if the return code is equal to zero. I) Execute this step unless the return code of a previous step is less than 10 execute UNLESS RC < 10 execute IF RC >= 10 execute IF 10 <= RC skip IF 10 > RC COND=(10,GT)