home *** CD-ROM | disk | FTP | other *** search
/ CP/M / CPM_CDROM.iso / jsage / zsus / z3help / i.lbr / IF.HZP / IF.HLP
Encoding:
Text File  |  1991-11-18  |  4.0 KB  |  104 lines

  1. ;
  2.   (FCP-Resident)                    IF                                        
  3.  
  4.              Size (recs) CRC   Version    Author/Latest Issue     Disk
  5.               n/a        n/a   n/a        n/a                     n/a
  6.  
  7.   1- Syntax/Options  2- Notes  3- Examples of Use  4- Help File               
  8.  
  9.  
  10.    I╞á i≤á aε FCP-residen⌠ commanΣ whicΦ test≤ ß conditioε anΣ set≤á thσá Flo≈ ì
  11. Contro∞ Statσ t∩ Truσ o≥ False«  Iµ thσ Flo≈ Contro∞ Statσ i≤ False¼ onl∙ FCP-ì
  12. residen⌠á command≤ arσ executeΣ witΦ al∞ othe≥ command≤ skipped«á  Thσá synta° ì
  13. anΣá option≤á arσ thσ samσ a≤ fo≥ thσ transien⌠ I╞ excep⌠ tha⌠ filσ list≤á arσ ì
  14. no⌠ permitted-- onl∙ onσ ambiguou≤ filσ name«  
  15.  
  16.    Fo≥á ZCP╥á 3.3¼á thσ I╞ commanΣ i≤ residen⌠ withiε SYSFC╨á wheεá thσá COMI╞ ì
  17. equatσá i≤á se⌠á t∩á FALSE«á  EacΦ oµ thσ option≤ oµ thσ residen⌠á I╞á ma∙á bσ ì
  18. independentl∙á enableΣá o≥ disableΣ a⌠ installation«á  Thσ SHO╫á commanΣá wil∞ ì
  19. displa∙ availablσ options.
  20. :1
  21.    Syntax:  IF cond arg 
  22.         or  IF ~cond arg
  23.  
  24.   Options:  
  25.  
  26. T            <-- The Flow State is Set to TRUE
  27. F            <-- The Flow State is Set to FALSE
  28. EMPTY afn    <-- If the indicated file is empty (size is 0K), 
  29.                    the Flow State is Set to TRUE
  30. ERROR        <-- If the ZCPR3 System Error Flag is SET,
  31.                    the Flow State is Set to TRUE
  32. EXIST afn    <-- If the indicated file exists, the Flow State is Set to TRUE
  33. INPUT        <-- The user is prompted for input, and if he responds with T, 
  34.                    Y, <CR>, or <SP>, the Flow State is Set to TRUE
  35. NULL afn     <-- If the 2nd FCB (afn) is blank, the Flow State is Set to TRUE
  36. TCAP         <-- If the ZCPR3 TCAP entry is available, 
  37.                    the Flow State is Set to TRUE
  38. WHEEL        <-- If the Wheel Byte is TRUE, the Flow State is Set to TRUE
  39. reg val      <-- If the indicated register (0-9) contains the indicated value 
  40.                    (0-255), the Flow State is Set to TRUE
  41. afn1=afn2    <-- If the two AFNs are the same, the Flow State is Set to TRUE
  42. :2
  43.  
  44.  
  45. IF Notes:
  46.  
  47.    a. Iε al∞ cases¼áiµ thσ indicateΣ conditioε i≤ TRUE¼áthσ Flo≈áStatσ i≤ Se⌠ 
  48.       t∩ TRUE╗áiµ thσ indicateΣáconditioεái≤ FALSE, the Flow State is Set to 
  49.       FALSE.
  50.  
  51.    b. Thi≤ácommanΣái≤ invokeΣ iµ thσ curren⌠áFlo≈áCommanΣ Packagσáha≤ thσ 
  52.       IF.CO═ facilit∙ disabled«á  Iµ thi≤ i≤áthσ case¼ wheneve≥ aε I╞ commanΣ 
  53.       i≤ issued¼ thσ FC╨ wil∞ resolvσ i⌠ internally.
  54.  
  55.    c. EacΦáoµ thσ option≤ oµ thσ Residen⌠ I╞ ma∙ o≥ ma∙áno⌠ bσ enabled«á Thesσ
  56.       option≤ arσ installation-dependent¼áanΣ thσ SHO╫ commanΣ wil∞ displa∙ 
  57.       thσ availablσ option≤ fo≥áan∙ installation.
  58.  
  59.  
  60.  
  61. IF Notes (continued):
  62.  
  63.    d. ┴ leadinτátildßá(~⌐ácharacte≥ábeforσáßáconditioε negate≤áthσ effec⌠ oµ 
  64.       thσ condition«á Iµ thσ conditioεái≤ FALSE¼áthσáFlo≈áStatσái≤ Se⌠ t∩á
  65.       TRUE¼ anΣávice-versa«  Example:
  66.  
  67.           "IF ~T" is the same as "IF F"
  68.           "IF ~NULL arg" is TRUE if 'arg' is non-blank
  69.           "IF ~EXIST afn" is TRUE if 'afn' does NOT
  70.                exist
  71.  
  72.       Fo≥ eacΦ conditioε given¼ onl∙ thσ firs⌠ tw∩ character≤ are significant 
  73.       (eg, NU for NULL).
  74. :3
  75.  
  76.  Examples of Use: 
  77.  
  78.      IF NULL $1
  79.           - if the indicated parameter (from within a SUBMIT
  80.                or ZEX command file) is not provided, set the
  81.                Flow State to TRUE
  82.  
  83.      IF ~EXIST ZEX.ASM
  84.           - if any ZEX.ASM does not exist, the
  85.                Flow State is set to TRUE
  86.  
  87.      IF NEC=$1
  88.           - if the first passed parameter is the same as
  89.                the file name "NEC.", then the Flow State
  90.                is Set to TRUE
  91.  
  92.      IF 5 5
  93.           - if Register 5 = 5, the Flow State is Set to TRUE
  94. :4
  95.  
  96.  
  97.                                      IF.HLP
  98.  
  99.              Size (recs) CRC   Version    Author/Latest Issue     Disk
  100.  
  101. ==============================================================================
  102.  
  103.    Z-System HELP file for 'flow-control' commands (IF, IF.COM, IFSTAT, ELSE,
  104. FI, XIF, etc.)..*»!╦D{ ΣδZF#~╣(> ╕8+q#q#q