{"action":"created","issue":{"url":"https://api.github.com/repos/cfengine/core/issues/2579","repository_url":"https://api.github.com/repos/cfengine/core","labels_url":"https://api.github.com/repos/cfengine/core/issues/2579/labels{/name}","comments_url":"https://api.github.com/repos/cfengine/core/issues/2579/comments","events_url":"https://api.github.com/repos/cfengine/core/issues/2579/events","html_url":"https://github.com/cfengine/core/pull/2579","id":148167283,"number":2579,"title":"Add \"true\" as a special expression that is always EVAL_EXPRESSION_TRUE","user":{"login":"tzz","id":67764,"avatar_url":"https://avatars.githubusercontent.com/u/67764?v=3","gravatar_id":"","url":"https://api.github.com/users/tzz","html_url":"https://github.com/tzz","followers_url":"https://api.github.com/users/tzz/followers","following_url":"https://api.github.com/users/tzz/following{/other_user}","gists_url":"https://api.github.com/users/tzz/gists{/gist_id}","starred_url":"https://api.github.com/users/tzz/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/tzz/subscriptions","organizations_url":"https://api.github.com/users/tzz/orgs","repos_url":"https://api.github.com/users/tzz/repos","events_url":"https://api.github.com/users/tzz/events{/privacy}","received_events_url":"https://api.github.com/users/tzz/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":2,"created_at":"2016-04-13T19:58:29Z","updated_at":"2016-04-14T13:08:20Z","closed_at":null,"pull_request":{"url":"https://api.github.com/repos/cfengine/core/pulls/2579","html_url":"https://github.com/cfengine/core/pull/2579","diff_url":"https://github.com/cfengine/core/pull/2579.diff","patch_url":"https://github.com/cfengine/core/pull/2579.patch"},"body":"@jimis this is what we discussed on IRC. See the acceptance test: only `from_true` is defined, the others (`false`, `null`, and a missing value) are false.\r\n\r\nAll other acceptance tests pass."},"comment":{"url":"https://api.github.com/repos/cfengine/core/issues/comments/209934781","html_url":"https://github.com/cfengine/core/pull/2579#issuecomment-209934781","issue_url":"https://api.github.com/repos/cfengine/core/issues/2579","id":209934781,"user":{"login":"jimis","id":3584514,"avatar_url":"https://avatars.githubusercontent.com/u/3584514?v=3","gravatar_id":"","url":"https://api.github.com/users/jimis","html_url":"https://github.com/jimis","followers_url":"https://api.github.com/users/jimis/followers","following_url":"https://api.github.com/users/jimis/following{/other_user}","gists_url":"https://api.github.com/users/jimis/gists{/gist_id}","starred_url":"https://api.github.com/users/jimis/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/jimis/subscriptions","organizations_url":"https://api.github.com/users/jimis/orgs","repos_url":"https://api.github.com/users/jimis/repos","events_url":"https://api.github.com/users/jimis/events{/privacy}","received_events_url":"https://api.github.com/users/jimis/received_events","type":"User","site_admin":false},"created_at":"2016-04-14T13:08:20Z","updated_at":"2016-04-14T13:08:20Z","body":"Thanks @tzz, this makes sense. Maybe we can also hard-code the \"false\" string to return `EXPRESSION_VALUE_FALSE`, no matter whether a \"false\" class is set? This shall be only when parsing expression strings, and I think it makes sense. @kacf what do you think?\r\n\r\nIn the end, it would be nice to update the [docs](https://docs.cfengine.com/docs/3.7/reference-promise-types-classes.html#expression), as they are quite frugal regarding the \"class expresions\". :-("}}