120137: Error in expression for <value>: Undefined reference to variable <value>. Did you mean <value>?

Description

A variable was referenced without being defined.

Solution

Verify that the variable is defined appropriately outside of or inside the function.

Verify that all occurrences of the variable are spelled correctly.

Verify that you used correct syntax when declaring the variable.

Learn more about variables in Arcade expressions