Retro video games delivered to your door every month!
Click above to get retro games delivered to your door ever month!
X-Hacker.org- Force 4.0 Reference - ; line combination http://www.X-Hacker.org [<<Previous Entry] [^^Up^^] [Next Entry>>] [Menu] [About The Guide]
 ;                   Line combination
------------------------------------------------------------------------------
 Syntax
   <statement>; <statement>

 Arguments
   <statement> is any valid source statement.

 Description
   The ; operator is used to combine independent source statements
   on one line. Any number of statements can be accumulated on one line.
   Line combination can not be used in macros.

 Example
   #define EXAMPLE_OPERATOR
   #include example.hdr

   proc Test_1499
   vardef
      byte nColor
   enddef
   nColor := __syscolor[ CLR_STD ]
   do case
   case nColor == BLACK_LIGHT_GREY; ? "white" // two lines are combined
   case nColor == BLACK_RED;        ? "red"   // in these statements
   case nColor == BLACK_GREEN;      ? "green"
   otherwise;                       ? "something else"
   endcase
   endproc

   proc main
   Test_1499()
   endproc

Online resources provided by: http://www.X-Hacker.org --- NG 2 HTML conversion by Dave Pearson