= #JxnPortable\docs\programmer_examples\demos\LocalVariable_Demo.jxn


#function $func( param_in_$func )
   param_in_$func
   global_from_file  ! accessible in $func
   $this.isDefined "$local_in_file"  ! not accessible
   
   global_from_$func = "i~uvw" + ".." + param_in_$func
   $local_in_$func = "i~xyz"

   #return "from_$func: " + $local_in_$func + ".." + param_in_$func
#endfunction


global_from_file = "o~abc"
$local_in_file = "o~def"
$this.isDefined "global_from_$func"  ! not yet defined

$func( "o~ghi" )  ! 1st call
$this.isDefined "param_in_$func"  ! not accessible
global_from_$func  ! now defined
$this.isDefined  "$local_in_$func"  ! not accessible

$func.setDebug(3)  ! show function execution
$func( $local_in_file )  ! 2nd call
global_from_$func  ! changed