Project

General

Profile

Actions

Bug #834

open

Transpiler mixing up Variable names with Function names

Added by Phil Bell almost 3 years ago. Updated almost 3 years ago.

Status:
New
Priority:
Normal
Target version:
Start date:
09/26/2021
Due date:
% Done:

0%

Estimated time:
Affected version:

Description

When you have a variable named the same as a function name, albeit with underscores '_' in the place of spaces....

Variable : PLAYER_NAME$
Function : Player Name$()

If you pass PLAYER_NAME$ into an instruction - the transpile is actually using the Player Name$() function instead of the variable

Here is an example of the generated code in the application.js

        // UI Value "UIPlayerName", PLAYER_NAME$
        aoz.sourcePos="0:7:0";
        aoz.ui.setValue( { id: "UIPlayerName", value: this.aoz.player.getPlayerPropertyValue('playername')  } );```
Actions

Also available in: Atom PDF