Skip to content
ricardoboss edited this page Sep 13, 2023 · 1 revision

Undefined Identifier Exception

Description

This exception is thrown when an identifier is used that was not previously defined or not defined in the current scope.

Example:

number a = b + 1

or:

if (true) {
	number a = b + 1
}

number b = 2

Remediation

Make sure that the identifier is defined in the current scope or in a parent scope and before it is used.

+ number b = 1
  number a = b + 1

or:

+ number b = 2

  if (true) {
  	number a = b + 1
  }

- number b = 2