home *** CD-ROM | disk | FTP | other *** search
- ;
- (FCP-Resident) IF
-
- Size (recs) CRC Version Author/Latest Issue Disk
- n/a n/a n/a n/a n/a
-
- 1- Syntax/Options 2- Notes 3- Examples of Use 4- Help File
-
-
- I╞á i≤á aε FCP-residen⌠ commanΣ whicΦ test≤ ß conditioε anΣ set≤á thσá Flo≈ ì
- Contro∞ Statσ t∩ Truσ o≥ False« Iµ thσ Flo≈ Contro∞ Statσ i≤ False¼ onl∙ FCP-ì
- residen⌠á command≤ arσ executeΣ witΦ al∞ othe≥ command≤ skipped«á Thσá synta° ì
- anΣá option≤á arσ thσ samσ a≤ fo≥ thσ transien⌠ I╞ excep⌠ tha⌠ filσ list≤á arσ ì
- no⌠ permitted-- onl∙ onσ ambiguou≤ filσ name«
-
- Fo≥á ZCP╥á 3.3¼á thσ I╞ commanΣ i≤ residen⌠ withiε SYSFC╨á wheεá thσá COMI╞ ì
- equatσá i≤á se⌠á t∩á FALSE«á EacΦ oµ thσ option≤ oµ thσ residen⌠á I╞á ma∙á bσ ì
- independentl∙á enableΣá o≥ disableΣ a⌠ installation«á Thσ SHO╫á commanΣá wil∞ ì
- displa∙ availablσ options.
- :1
- Syntax: IF cond arg
- or IF ~cond arg
-
- Options:
-
- T <-- The Flow State is Set to TRUE
- F <-- The Flow State is Set to FALSE
- EMPTY afn <-- If the indicated file is empty (size is 0K),
- the Flow State is Set to TRUE
- ERROR <-- If the ZCPR3 System Error Flag is SET,
- the Flow State is Set to TRUE
- EXIST afn <-- If the indicated file exists, the Flow State is Set to TRUE
- INPUT <-- The user is prompted for input, and if he responds with T,
- Y, <CR>, or <SP>, the Flow State is Set to TRUE
- NULL afn <-- If the 2nd FCB (afn) is blank, the Flow State is Set to TRUE
- TCAP <-- If the ZCPR3 TCAP entry is available,
- the Flow State is Set to TRUE
- WHEEL <-- If the Wheel Byte is TRUE, the Flow State is Set to TRUE
- reg val <-- If the indicated register (0-9) contains the indicated value
- (0-255), the Flow State is Set to TRUE
- afn1=afn2 <-- If the two AFNs are the same, the Flow State is Set to TRUE
- :2
-
-
- IF Notes:
-
- a. Iε al∞ cases¼áiµ thσ indicateΣ conditioε i≤ TRUE¼áthσ Flo≈áStatσ i≤ Se⌠
- t∩ TRUE╗áiµ thσ indicateΣáconditioεái≤ FALSE, the Flow State is Set to
- FALSE.
-
- b. Thi≤ácommanΣái≤ invokeΣ iµ thσ curren⌠áFlo≈áCommanΣ Packagσáha≤ thσ
- IF.CO═ facilit∙ disabled«á Iµ thi≤ i≤áthσ case¼ wheneve≥ aε I╞ commanΣ
- i≤ issued¼ thσ FC╨ wil∞ resolvσ i⌠ internally.
-
- c. EacΦáoµ thσ option≤ oµ thσ Residen⌠ I╞ ma∙ o≥ ma∙áno⌠ bσ enabled«á Thesσ
- option≤ arσ installation-dependent¼áanΣ thσ SHO╫ commanΣ wil∞ displa∙
- thσ availablσ option≤ fo≥áan∙ installation.
-
-
-
- IF Notes (continued):
-
- d. ┴ leadinτátildßá(~⌐ácharacte≥ábeforσáßáconditioε negate≤áthσ effec⌠ oµ
- thσ condition«á Iµ thσ conditioεái≤ FALSE¼áthσáFlo≈áStatσái≤ Se⌠ t∩á
- TRUE¼ anΣávice-versa« Example:
-
- "IF ~T" is the same as "IF F"
- "IF ~NULL arg" is TRUE if 'arg' is non-blank
- "IF ~EXIST afn" is TRUE if 'afn' does NOT
- exist
-
- Fo≥ eacΦ conditioε given¼ onl∙ thσ firs⌠ tw∩ character≤ are significant
- (eg, NU for NULL).
- :3
-
- Examples of Use:
-
- IF NULL $1
- - if the indicated parameter (from within a SUBMIT
- or ZEX command file) is not provided, set the
- Flow State to TRUE
-
- IF ~EXIST ZEX.ASM
- - if any ZEX.ASM does not exist, the
- Flow State is set to TRUE
-
- IF NEC=$1
- - if the first passed parameter is the same as
- the file name "NEC.", then the Flow State
- is Set to TRUE
-
- IF 5 5
- - if Register 5 = 5, the Flow State is Set to TRUE
- :4
-
-
- IF.HLP
-
- Size (recs) CRC Version Author/Latest Issue Disk
-
- ==============================================================================
-
- Z-System HELP file for 'flow-control' commands (IF, IF.COM, IFSTAT, ELSE,
- FI, XIF, etc.)..*»!╦D{ ΣδZF#~╣(> ╕8+q#q#q