; -- Flow Commands -- -- IF Commands -- -- IF Condition Summaries -- 1 Transient IF T Transient IF 2 Resident IF R Resident IF -- Others -- 3 IF Status Display 4 ELSE 5 FI 6 XIF :1 Command: IF 1.1 Syntax: IF cond args or IF ~cond args Function: IÆ  testó thå indicateä conditioî tï seå iæ iô ió TRUE¬ � and¬  iæ  so¬  setó  thå Flo÷ Statå tï  TRUÅ  (allowinç  thå � followinç commandó tï execute)®  Iæ thå conditioî ió FALSE¬ � thå  Flo÷ Statå ió seô tï FALSÅ (allowinç onlù Flo÷ Commandó � to execute). Options: Option Meaning T TRUE (Flow State is Set to TRUE) F FALSE (Flow State is Set to FALSE) EMPTY afn,... If all files in the indicated list are EMPTY (size is 0K), then Flow State is Set to TRUE ERROR If the ZCPR3 Error Flag is Set, then Flow State is Set to TRUE EXIST afn,... If all files in the indicated list exist, then Flow State is Set to TRUE INPUT User input is enabled, and if the user strikes T, Y, , or , the Flow State is Set to TRUE NULL afn If there is no 'afn' (field is blank), then the Flow State is Set to TRUE TCAP If a Z3TCAP is installed, the Flow State is Set to TRUE WHEEL If the Wheel Byte is Set, the Flow State is Set to TRUE reg value If the indicated register (0-9) has the indicateä valuå (0-255)¬ thå Flow State is Set to TRUE afn1=afn2 If the two AFNs are identical in name (11 char FILENAME.TYP are same), the Flow State is Set to TRUE Comments: 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. Thió  commanä  ió invokeä iæ thå currenô  Flo÷  Commanä � Packagå  haó  thå IF.COÍ facilitù enabled®  Iæ thió ió  thå � case¬  wheneveò aî IÆ commanä ió issued¬  thå FCÐ wilì  loaä � IF.COÍ  froí thå ROOÔ directorù intï memorù anä executå  it® � Thå  commanä taiì ió passeä tï IF.COM¬  anä IF.COÍ actó aó á � conventionaì COÍ filå froí thaô poinô forward®  Alì bufferó � arå  loadeä correctlù (FCBó aô 5CÈ anä 6CH¬  TBUFÆ  aô  80H¬ � etc). Á  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,...' do NOT exist (AFN and AFN ... must each not exist) Foò eacè conditioî given¬ onlù thå firsô twï characteró � are significant (eg, NU for NULL). Selected Error Messages: "Nï  IÆ  Conditioî  Given¢  meanó  thaô  thå  conditioî � expressed was not one of the valid conditions. 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,ZEX.ZEX - if any one of these files does not exist, the Flow State is set to TRUE IF EXIST ZEX.ASM,ZEX.ZEX - if any one of these files does not exist, the Flow State is set to FALSE (ie, all files must exist for a TRUE Flow State) 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 :2 Command: IF (as implemented in SYSFCP 1.0) Syntax: IF cond arg or IF ~cond arg Function: IÆ  testó thå indicateä conditioî tï seå iæ iô ió TRUE¬ � and¬  iæ  so¬  setó  thå Flo÷ Statå tï  TRUÅ  (allowinç  thå � followinç commandó tï execute)®  Iæ thå conditioî ió FALSE¬ � thå  Flo÷ Statå ió seô tï FALSÅ (allowinç onlù Flo÷ Commandó � to execute). Thå IÆ commanä describeä herå ió residenô withiî SYSFCÐ � 1.0 when the COMIF equate is set to FALSE. Options: Option Meaning 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, , or , 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 Comments: 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. 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. 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. Á  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). Selected Error Messages: None 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 :3 Command: IFSTAT 1.0 Syntax: IFSTAT Function: IFSTAÔ ió useä tï displaù thå currenô IÆ level® IFSTAÔ � wilì  reporô  witè á Leveì Numbeò froí ± tï ¸  (IFó  maù  bå � nesteä uð tï ¸ leveló deep© oò iô wilì replù witè "Nï Activå � IF". Options: None Comments: Thå Flo÷ Statå MUSÔ bå TRUÅ foò IFSTAÔ tï run¬ sincå iô � is a COM file like any other. Selected Error Messages: None Examples of Use: IFSTAT -- the current IF level is displayed :T Summary of Transient IF Conditions Option Meaning T TRUE (Flow State is Set to TRUE) F FALSE (Flow State is Set to FALSE) EMPTY afn,... If all files in the indicated list are EMPTY (size is 0K), then Flow State is Set to TRUE ERROR If the ZCPR3 Error Flag is Set, then Flow State is Set to TRUE EXIST afn,... If all files in the indicated list exist, then Flow State is Set to TRUE INPUT User input is enabled, and if the user strikes T, Y, , or , the Flow State is Set to TRUE NULL afn If there is no 'afn' (field is blank), then the Flow State is Set to TRUE TCAP If a Z3TCAP is installed, the Flow State is Set to TRUE WHEEL If the Wheel Byte is Set, the Flow State is Set to TRUE reg value If the indicated register (0-9) has the indicateä valuå (0-255)¬ thå Flow State is Set to TRUE afn1=afn2 If the two AFNs are identical in name (11 char FILENAME.TYP are same), the Flow State is Set to TRUE :R Summary of Resident IF Conditions Option Meaning 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, , or , 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 :4 Command: ELSE (from SYSFCP 1.0) Syntax: ELSE anytext Function: Iæ  thå currenô Flo÷ Statå ió TRUE¬  ELSÅ toggleó iô tï � FALSE. Iæ thå currenô Flo÷ Statå ió FALSÅ anä thå previouó  IÆ � Leveì  ió  iî á TRUÅ State¬  ELSÅ toggleó thå Flo÷ Statå  tï � TRUE®  Iæ thå previouó IÆ Leveì ió iî á FALSÅ  State¬  ELSÅ � does nothing. Options: None (any text may follow the verb ELSE) Comments: None Selected Error Messages: No error messages are generated Examples of Use: IF NEC=$1 < statements > ELSE < statements > FI :5 Command: FI (from SYSFCP 1.0) Syntax: FI anytext Function: FÉ  terminateó  thå currenô IÆ Level®  Iæ therå ió  nï � current IF level, FI does nothing. Options: None (any text may follow the verb FI) Comments: None Selected Error Messages: None Examples of Use: IF EXIST MYFILE.ASM < statements > ELSE < statements > FI :6 Command: XIF (from SYSFCP 1.0) Syntax: XIF anytext Function: Iæ  thå  currenô  Flo÷ Statå ió  TRUE¬  XIÆ  exitó  alì � pendinç  IFs®  Iô  reduceó  thå IÆ Leveì tï  °  (nï  IÆ  iî � effect). If the current Flow State is FALSE, XIF does nothing. Options: None Comments: None Selected Error Messages: None Examples of Use: ;=LOOP XIF IF 1 3 GOTO LOOP FI