Skip to content

GDIfExpression parse bug #14

Description

@querimal2
extends Node

func _ready():
	var scale_factor = 1
	var direction = -1
	var scale = scale_factor if direction == 1 else - scale_factor //correct parsing
	scale = scale_factor if direction == 1 else - scale_factor //incorrect parsing

If a variable is initialized with var, then TrueExpression outputs "scaleFactor", which is correct. But if you declare it without var, then TrueExpression outputs "scale = scaleFactor", which is incorrect.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions