home *** CD-ROM | disk | FTP | other *** search
/ Club Amiga de Montreal - CAM / CAM_CD_1.iso / files / 073.lha / Arp / documentation / If.DOC < prev    next >
Encoding:
Text File  |  1986-11-20  |  950 b   |  67 lines

  1.  
  2.  
  3.  
  4.      ARP(REL1)             ARP User's    Manual             ARP(REL1)
  5.  
  6.  
  7.  
  8.      NAME
  9.       IF - test for    conditionals in    batch files
  10.  
  11.      SYNOPSIS
  12.       IF <condition    to test    for>
  13.  
  14.      DESCRIPTION
  15.       You can use this command to provide some logic for batch
  16.       files. You can test for the presence of a file using the
  17.       EXISTS <filename> keyword, you can compare two strings for
  18.       equality (disregarding case) using the EQ keyword ( "string"
  19.       EQ "string") you can test for    the previous programs return
  20.       codes    WARN >=    5, ERROR >= 10,    FAIL >=    20.  You can also
  21.       combine any one of these commands with NOT, which inverts
  22.       the result. I.E., if a file does exists, then    NOT EXISTS
  23.       <file> will return FALSE, and    cause the IF to    fail.  When IF
  24.       fails, it moves the execution    of the file ahead to the next
  25.       ELSE or ENDIF    command.  ELSE and ENDIF are bound to the most
  26.       recent IF.
  27.  
  28.  
  29.  
  30.  
  31.  
  32.  
  33.  
  34.  
  35.  
  36.  
  37.  
  38.  
  39.  
  40.  
  41.  
  42.  
  43.  
  44.  
  45.  
  46.  
  47.  
  48.  
  49.  
  50.  
  51.  
  52.  
  53.  
  54.  
  55.  
  56.  
  57.  
  58.  
  59.  
  60.  
  61.  
  62.  
  63.      Page 1                         (printed 10/6/87)
  64.  
  65.  
  66.  
  67.