Skip to content

Incorrect code being executed #27

@back2Lobby

Description

@back2Lobby

This code returns "None" in the playground editor output with no error.

extends Node

func _ready():
    if self().x:
        print("hello")
    else:
        print("bye")

But it returns this error in godot:

Cannot call on an expression. Use ".call()" if it's a Callable.

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions