home *** CD-ROM | disk | FTP | other *** search
/ ftp.barnyard.co.uk / 2015.02.ftp.barnyard.co.uk.tar / ftp.barnyard.co.uk / cpm / walnut-creek-CDROM / SIMTEL / CPMUG / CPMUG031.ARK / TBASIC.14 < prev    next >
Text File  |  1984-04-29  |  1KB  |  68 lines

  1.             OPERATORS
  2.  
  3. Arithmetic Operators (in order of precedence)
  4.  
  5. 1.  expressions enclosed in parenthesis
  6. 2.  ^        exponentiation
  7. 3.  -        negation
  8. 4.  *  /    multiplication and division
  9. 5.  +  -    addition and subtraction
  10. 6.  relational operators (same for all)
  11.     =    equal
  12.     <>    not equal
  13.     <    less than
  14.     >    greater than
  15.     <=    less than or equal
  16.     >=    greater than or equal
  17. 7.  NOT        inversion of all bits
  18. 8.  AND        logical multiplication of each bit
  19. 9.  OR        logical addition of each bit
  20.  
  21.  
  22.  
  23.  
  24.  
  25.  
  26. String Operators
  27.  
  28. 1.  Comparison Operators
  29.  
  30.     =    equals
  31.     >    greater than
  32.     <    less than
  33.     <=    less than or equal
  34.     >=    greater than or equal
  35.     <>    not equal
  36.  
  37.     Comparison is made by comparing the ASCII codes of each character
  38.     of each string, starting with the first character of each string.
  39.     The comparison continues with each set of corresponding characters
  40.     until there is a mismatch, at which time the string with the code
  41.     having the higher ASCII value is declared the greater.  If there
  42.     is no mismatch, the strings are of equal value.  If one string is
  43.     shorter than the other, the longer string is considered greater.
  44.  
  45. 2.  +        Concatenates (hooks together) two strings end-to-end.
  46.  
  47.  
  48.  
  49.  
  50.  
  51.  
  52.  
  53.                 14
  54.  
  55.  
  56.  
  57.  
  58.  
  59.  
  60.  
  61.  
  62.  
  63.  
  64.  
  65.  
  66.  
  67.  
  68.