{"action":"created","issue":{"url":"https://api.github.com/repos/Shopify/liquid/issues/138","repository_url":"https://api.github.com/repos/Shopify/liquid","labels_url":"https://api.github.com/repos/Shopify/liquid/issues/138/labels{/name}","comments_url":"https://api.github.com/repos/Shopify/liquid/issues/138/comments","events_url":"https://api.github.com/repos/Shopify/liquid/issues/138/events","html_url":"https://github.com/Shopify/liquid/issues/138","id":6310214,"number":138,"title":"How to express logic \"and\",\"or\", \"not\"?","user":{"login":"zhaopengme","id":1415418,"avatar_url":"https://avatars.githubusercontent.com/u/1415418?v=3","gravatar_id":"","url":"https://api.github.com/users/zhaopengme","html_url":"https://github.com/zhaopengme","followers_url":"https://api.github.com/users/zhaopengme/followers","following_url":"https://api.github.com/users/zhaopengme/following{/other_user}","gists_url":"https://api.github.com/users/zhaopengme/gists{/gist_id}","starred_url":"https://api.github.com/users/zhaopengme/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/zhaopengme/subscriptions","organizations_url":"https://api.github.com/users/zhaopengme/orgs","repos_url":"https://api.github.com/users/zhaopengme/repos","events_url":"https://api.github.com/users/zhaopengme/events{/privacy}","received_events_url":"https://api.github.com/users/zhaopengme/received_events","type":"User","site_admin":false},"labels":[{"url":"https://api.github.com/repos/Shopify/liquid/labels/Bug%20Report","name":"Bug Report","color":"e11d21"}],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":37,"created_at":"2012-08-19T05:29:55Z","updated_at":"2016-08-17T17:34:19Z","closed_at":null,"body":"\"and\" is and.\n\n\"or\" is or.\n\nbut what is \"not\"  ?\n\nthanks!"},"comment":{"url":"https://api.github.com/repos/Shopify/liquid/issues/comments/240486832","html_url":"https://github.com/Shopify/liquid/issues/138#issuecomment-240486832","issue_url":"https://api.github.com/repos/Shopify/liquid/issues/138","id":240486832,"user":{"login":"TWiStErRob","id":2906988,"avatar_url":"https://avatars.githubusercontent.com/u/2906988?v=3","gravatar_id":"","url":"https://api.github.com/users/TWiStErRob","html_url":"https://github.com/TWiStErRob","followers_url":"https://api.github.com/users/TWiStErRob/followers","following_url":"https://api.github.com/users/TWiStErRob/following{/other_user}","gists_url":"https://api.github.com/users/TWiStErRob/gists{/gist_id}","starred_url":"https://api.github.com/users/TWiStErRob/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/TWiStErRob/subscriptions","organizations_url":"https://api.github.com/users/TWiStErRob/orgs","repos_url":"https://api.github.com/users/TWiStErRob/repos","events_url":"https://api.github.com/users/TWiStErRob/events{/privacy}","received_events_url":"https://api.github.com/users/TWiStErRob/received_events","type":"User","site_admin":false},"created_at":"2016-08-17T17:34:18Z","updated_at":"2016-08-17T17:34:18Z","body":"Phew, @evulse read it wrong, a \"block\" is stuff between start and end tags of liquid. It's possible to write:\r\n```liquid\r\n{% unless 'a' == 'a' %} hello {% elsif 'b' != 'c' %} cruel {% else %} world {% endunless %}\r\n```\r\nwhich outputs \"cruel\". I confirmed this by printing the `@blocks` variable in `unless.rb`:\r\n```\r\n[#<Condition 'a' == 'a'>, #<Condition 'b' != 'c'>, #<Condition >]\r\n```"}}
{"actor":{"display_login":"TWiStErRob"}}