{"action":"created","issue":{"url":"https://api.github.com/repos/zachsnow/ng-elif/issues/14","labels_url":"https://api.github.com/repos/zachsnow/ng-elif/issues/14/labels{/name}","comments_url":"https://api.github.com/repos/zachsnow/ng-elif/issues/14/comments","events_url":"https://api.github.com/repos/zachsnow/ng-elif/issues/14/events","html_url":"https://github.com/zachsnow/ng-elif/issues/14","id":115268457,"number":14,"title":"How does this library internally work?","user":{"login":"akcasoy","id":12121451,"avatar_url":"https://avatars.githubusercontent.com/u/12121451?v=3","gravatar_id":"","url":"https://api.github.com/users/akcasoy","html_url":"https://github.com/akcasoy","followers_url":"https://api.github.com/users/akcasoy/followers","following_url":"https://api.github.com/users/akcasoy/following{/other_user}","gists_url":"https://api.github.com/users/akcasoy/gists{/gist_id}","starred_url":"https://api.github.com/users/akcasoy/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/akcasoy/subscriptions","organizations_url":"https://api.github.com/users/akcasoy/orgs","repos_url":"https://api.github.com/users/akcasoy/repos","events_url":"https://api.github.com/users/akcasoy/events{/privacy}","received_events_url":"https://api.github.com/users/akcasoy/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":1,"created_at":"2015-11-05T11:52:27Z","updated_at":"2015-11-08T19:06:03Z","closed_at":null,"body":"Will the else conditions still be evaluated internally when the if condition was already true? This is based on my stackoverflow question: http://stackoverflow.com/questions/33540326/how-do-handle-if-else-cases-in-angular-ng-show-without-ng-switch?noredirect=1#comment54866854_33540326\r\n\r\nif(x) {\r\n}\r\nelse if(y){\r\n}\r\n\r\nWill this internally be converted to this?:\r\n\r\nif(x) {\r\n}\r\nif(!x && y){\r\n}\r\n\r\n.. so will the x condition be evaluated twice?"},"comment":{"url":"https://api.github.com/repos/zachsnow/ng-elif/issues/comments/154858497","html_url":"https://github.com/zachsnow/ng-elif/issues/14#issuecomment-154858497","issue_url":"https://api.github.com/repos/zachsnow/ng-elif/issues/14","id":154858497,"user":{"login":"zachsnow","id":770808,"avatar_url":"https://avatars.githubusercontent.com/u/770808?v=3","gravatar_id":"","url":"https://api.github.com/users/zachsnow","html_url":"https://github.com/zachsnow","followers_url":"https://api.github.com/users/zachsnow/followers","following_url":"https://api.github.com/users/zachsnow/following{/other_user}","gists_url":"https://api.github.com/users/zachsnow/gists{/gist_id}","starred_url":"https://api.github.com/users/zachsnow/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/zachsnow/subscriptions","organizations_url":"https://api.github.com/users/zachsnow/orgs","repos_url":"https://api.github.com/users/zachsnow/repos","events_url":"https://api.github.com/users/zachsnow/events{/privacy}","received_events_url":"https://api.github.com/users/zachsnow/received_events","type":"User","site_admin":false},"created_at":"2015-11-08T19:06:03Z","updated_at":"2015-11-08T19:06:03Z","body":"Hey @akcasoy, what happens is that the expressions `x` and `y` are stored, and then each digest they are evaluated. So, `x` and `y` are each evaluated once. Note that this is much different than a \"real\" if-else in, say, Javascript, wherein when `x` is true `y` is not evaluated at all."}}