DOC HOME SITE MAP MAN PAGES GNU INFO SEARCH PRINT BOOK
 

(as.info) If

Info Catalog (as.info) Ident (as.info) Pseudo Ops (as.info) Include
 
 `.if ABSOLUTE EXPRESSION'
 =========================
 
    `.if' marks the beginning of a section of code which is only
 considered part of the source program being assembled if the argument
 (which must be an ABSOLUTE EXPRESSION) is non-zero.  The end of the
 conditional section of code must be marked by `.endif' (  
 Endif.); optionally, you may include code for the alternative
 condition, flagged by `.else' ( `.else' Else.).  If you have
 several conditions to check, `.elseif' may be used to avoid nesting
 blocks if/else within each subsequent `.else' block.
 
    The following variants of `.if' are also supported:
 `.ifdef SYMBOL'
      Assembles the following section of code if the specified SYMBOL
      has been defined.
 
 `.ifc STRING1,STRING2'
      Assembles the following section of code if the two strings are the
      same.  The strings may be optionally quoted with single quotes.
      If they are not quoted, the first string stops at the first comma,
      and the second string stops at the end of the line.  Strings which
      contain whitespace should be quoted.  The string comparison is
      case sensitive.
 
 `.ifeq ABSOLUTE EXPRESSION'
      Assembles the following section of code if the argument is zero.
 
 `.ifeqs STRING1,STRING2'
      Another form of `.ifc'.  The strings must be quoted using double
      quotes.
 
 `.ifge ABSOLUTE EXPRESSION'
      Assembles the following section of code if the argument is greater
      than or equal to zero.
 
 `.ifgt ABSOLUTE EXPRESSION'
      Assembles the following section of code if the argument is greater
      than zero.
 
 `.ifle ABSOLUTE EXPRESSION'
      Assembles the following section of code if the argument is less
      than or equal to zero.
 
 `.iflt ABSOLUTE EXPRESSION'
      Assembles the following section of code if the argument is less
      than zero.
 
 `.ifnc STRING1,STRING2.'
      Like `.ifc', but the sense of the test is reversed: this assembles
      the following section of code if the two strings are not the same.
 
 `.ifndef SYMBOL'
 `.ifnotdef SYMBOL'
      Assembles the following section of code if the specified SYMBOL
      has not been defined.  Both spelling variants are equivalent.
 
 `.ifne ABSOLUTE EXPRESSION'
      Assembles the following section of code if the argument is not
      equal to zero (in other words, this is equivalent to `.if').
 
 `.ifnes STRING1,STRING2'
      Like `.ifeqs', but the sense of the test is reversed: this
      assembles the following section of code if the two strings are not
      the same.
 
Info Catalog (as.info) Ident (as.info) Pseudo Ops (as.info) Include
automatically generated byinfo2html