The scope of variables determines where the value associated with the variable can be accessed. In ASL, there are three scope levels:

  • Local-scoped variables are accessible only from the rule where the variable is assigned a value and can be referenced in subordinate rules.

  • Driver-scoped variables are accessible from any rule in an ASL script.

  • Global-scoped variables are accessible from any adapter that runs on the same process where the variable is assigned a value.

    Note:

    A local-scope variable cannot have the same name as a global-scoped variable.