Museum

Home

Lab Overview

Retrotechnology Articles

⇒ Online Manual

Media Vault

Software Library

Restoration Projects

Artifacts Sought

4.0;eqs (equal_string), revision 4.0, 82/03/31
EQS (EQUAL_STRING) -- Compare strings for equality.
usage:  EQS [string1 [string2]]


FORMAT

  EQS [string1 [string2]]


  EQS  compares  strings  for  equality,  and  sets  the  abort  severity  level
  accordingly.


ARGUMENTS

  If no arguments are specified, EQS always returns TRUE.

  string1
  (optional)         Specify text string to test.  If this is  the  only  string
                     given  (i.e.,  'string2'  is not specified), return TRUE if
                     'string1' is empty; otherwise return FALSE.

                     Default if omitted:  return TRUE

  string2
  (optional)         Specify text string to  compare  against  'string1'.    EQS
                     returns  TRUE  if  the strings are equal, and FALSE if they
                     are not.

                     Default if omitted:  test 'string1' only


EXAMPLES

  The following Shell script will compile the PASCAL module named by  the  first
  argument  (^1)  if  the  second  argument (^2) is '-c'.  Then it will bind the
  module with 'library'.

      if eqs ^2 '-c' then pas ^1 endif
      bind ^1.bin library -b ^1

  If the second argument is not '-c', or if there is  no  second  argument,  the
  program simply binds the module.

Typewritten Software • bear@typewritten.org • Edmonds, WA 98026