home *** CD-ROM | disk | FTP | other *** search
/ Software of the Month Club 1994 November / SOFM_Nov1994.bin / pc / bonus / tech / key134.tx_ / key134.tx
Text File  |  1993-10-24  |  1KB  |  30 lines

  1. Data Comparison - Test if r <= s
  2.  
  3. r and s are internal Variables used for Data Comparison Purposes. You can place a Number in r by using the Instruction Stor. You may also Exchange the Values of r and s. Then you can Compare that Value of to the Value of s. Program flow will Depend upon the Outcome of the Comparison. If the Comparison is True then the Program will Continue with the next Instruction. If the Comparison is False then the Program will search for the End If Instruction and then Continue Immmediately After it.
  4.  
  5. The types of Comparisons that can be Made include :
  6. r=s ; r<>s ; r>s ; and r<=s.
  7.  
  8. Example :
  9.  
  10. 2             :Enter the Number 2 in the Display
  11. Stor        :Put the Displayed Number in Variable r
  12. r_s         :Exchange the Values of r and s
  13. 3             :Enter the Number 3 in the Display
  14. Stor        :Put the Displayed Number in Variable r
  15.  
  16. ( Variable r = 3 and Variable s = 2 )
  17.  
  18. r<=s          :Test if Variable r <= s
  19. Cxinc      :Continue here if  r<=s (Test is True)
  20. End If     :This is the End If Instruction for r<=s
  21. Cxdc      :Continue here if the Test is False (r>s)
  22. End        : End of Program
  23.  
  24. Note :Cxinc and Cxdc could have been any Instructions. They were used for Demonstration Purposes only.
  25.  
  26.  
  27.  
  28.  
  29.  
  30.