{"action":"created","issue":{"url":"https://api.github.com/repos/godotengine/godot/issues/3023","labels_url":"https://api.github.com/repos/godotengine/godot/issues/3023/labels{/name}","comments_url":"https://api.github.com/repos/godotengine/godot/issues/3023/comments","events_url":"https://api.github.com/repos/godotengine/godot/issues/3023/events","html_url":"https://github.com/godotengine/godot/issues/3023","id":121131430,"number":3023,"title":"GDScript: or-expression evaluation","user":{"login":"koalefant","id":4587648,"avatar_url":"https://avatars.githubusercontent.com/u/4587648?v=3","gravatar_id":"","url":"https://api.github.com/users/koalefant","html_url":"https://github.com/koalefant","followers_url":"https://api.github.com/users/koalefant/followers","following_url":"https://api.github.com/users/koalefant/following{/other_user}","gists_url":"https://api.github.com/users/koalefant/gists{/gist_id}","starred_url":"https://api.github.com/users/koalefant/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/koalefant/subscriptions","organizations_url":"https://api.github.com/users/koalefant/orgs","repos_url":"https://api.github.com/users/koalefant/repos","events_url":"https://api.github.com/users/koalefant/events{/privacy}","received_events_url":"https://api.github.com/users/koalefant/received_events","type":"User","site_admin":false},"labels":[{"url":"https://api.github.com/repos/godotengine/godot/labels/bug","name":"bug","color":"ff2222"},{"url":"https://api.github.com/repos/godotengine/godot/labels/confirmed","name":"confirmed","color":"66dd66"},{"url":"https://api.github.com/repos/godotengine/godot/labels/topic:gdscript","name":"topic:gdscript","color":"ffdd44"}],"state":"open","locked":false,"assignee":null,"milestone":{"url":"https://api.github.com/repos/godotengine/godot/milestones/1","html_url":"https://github.com/godotengine/godot/milestones/2.0","labels_url":"https://api.github.com/repos/godotengine/godot/milestones/1/labels","id":1381437,"number":1,"title":"2.0","description":"","creator":{"login":"akien-mga","id":4701338,"avatar_url":"https://avatars.githubusercontent.com/u/4701338?v=3","gravatar_id":"","url":"https://api.github.com/users/akien-mga","html_url":"https://github.com/akien-mga","followers_url":"https://api.github.com/users/akien-mga/followers","following_url":"https://api.github.com/users/akien-mga/following{/other_user}","gists_url":"https://api.github.com/users/akien-mga/gists{/gist_id}","starred_url":"https://api.github.com/users/akien-mga/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/akien-mga/subscriptions","organizations_url":"https://api.github.com/users/akien-mga/orgs","repos_url":"https://api.github.com/users/akien-mga/repos","events_url":"https://api.github.com/users/akien-mga/events{/privacy}","received_events_url":"https://api.github.com/users/akien-mga/received_events","type":"User","site_admin":false},"open_issues":97,"closed_issues":145,"state":"open","created_at":"2015-10-28T13:37:45Z","updated_at":"2015-12-10T14:48:24Z","due_on":null,"closed_at":null},"comments":8,"created_at":"2015-12-09T00:16:52Z","updated_at":"2015-12-10T15:58:31Z","closed_at":null,"body":"Following code would invoke call_node function even if first part of or-expression (condition == null) succeeds:\r\n```gdscript\r\nif condition == null or call_node( condition ):\r\n     # whatever\r\n```\r\nThis is different from how Python or C++ would evaluate such expression. Is this an intended behavior?\r\n "},"comment":{"url":"https://api.github.com/repos/godotengine/godot/issues/comments/163669292","html_url":"https://github.com/godotengine/godot/issues/3023#issuecomment-163669292","issue_url":"https://api.github.com/repos/godotengine/godot/issues/3023","id":163669292,"user":{"login":"akien-mga","id":4701338,"avatar_url":"https://avatars.githubusercontent.com/u/4701338?v=3","gravatar_id":"","url":"https://api.github.com/users/akien-mga","html_url":"https://github.com/akien-mga","followers_url":"https://api.github.com/users/akien-mga/followers","following_url":"https://api.github.com/users/akien-mga/following{/other_user}","gists_url":"https://api.github.com/users/akien-mga/gists{/gist_id}","starred_url":"https://api.github.com/users/akien-mga/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/akien-mga/subscriptions","organizations_url":"https://api.github.com/users/akien-mga/orgs","repos_url":"https://api.github.com/users/akien-mga/repos","events_url":"https://api.github.com/users/akien-mga/events{/privacy}","received_events_url":"https://api.github.com/users/akien-mga/received_events","type":"User","site_admin":false},"created_at":"2015-12-10T15:58:31Z","updated_at":"2015-12-10T15:58:31Z","body":"I tried it a couple of days ago and *could* reproduce the issue, with something like:\r\n```\r\nvar i = 0\r\n\r\nfunc test():\r\n    i += 1\r\n\r\nfunc _ready():\r\n    var testbool = true\r\n    if testbool or test():\r\n        pass\r\n    print(i)\r\n```\r\nIIRC the print gave me \"1\". I'll try again in the evening."}}