home *** CD-ROM | disk | FTP | other *** search
/ Amiga Plus 2002 #11 / Amiga Plus CD - 2002 - No. 11.iso / Tools / MorphOS / Epic4_mos / share / epic / help / 5_programming / local < prev    next >
Encoding:
Text File  |  2002-10-28  |  933 b   |  24 lines

  1. Synopsis:
  2.    local [[-]<variable name>[,<variable name>] [<value>]]
  3.  
  4. Description:
  5.    LOCAL creates "local" variables. Local variables are the same as assign(6)
  6.    variables, except they're primarily for inside one specific alias. Local
  7.    variables cannot be removed. There are several reasons for this, which are
  8.    mostly advantages for scripts. A local variable is specific to the alias it
  9.    was defined in, causing less confusion with multiple variables in multiple
  10.    aliases. They are less cpu-intensive, making them optimal for recursive
  11.    functions like for(5). Arrays may also be defined with local.
  12.  
  13. Examples:
  14.    To give the local variable $blah a value of "this is a test":
  15.       local blah this is a test
  16.  
  17.    To give both $blah and $foo a value:
  18.       local blah,foo local vars are neat
  19.  
  20. See Also:
  21.    Expressions(7); Special_Vars(7); alias(5); assign(5); eval(5);
  22.    set(4) input_aliases
  23.  
  24.