Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.
Comment: Import Macro Repair
Panel
bgColor#ffffff
titleQ

How is a "local" variable distinguished from a "global" variable?

Panel
bgColor#ffffff
titleA

Variables with preceding local are valid only until the executed block where they are defined. The use of local variable has a small speed advantage, since the interpreter accesses to local variables via indexes and not via their names in the variable table.

Local variables defined in the root of script or are no longer available in the next cycle of the script. The same when defined in functions. When the function is left, the value is gone.

Panel
bgColor#ffffff
titleSee also...

Filter by label (Content by label)
showLabelsfalse
spaces@self
showSpacefalse
operatorAND
cqllabel = "netscript" and label = "variable" and space = currentSpace ( )
labelsnetscript variable