{"action":"opened","issue":{"url":"https://api.github.com/repos/peteboere/css-crush/issues/73","labels_url":"https://api.github.com/repos/peteboere/css-crush/issues/73/labels{/name}","comments_url":"https://api.github.com/repos/peteboere/css-crush/issues/73/comments","events_url":"https://api.github.com/repos/peteboere/css-crush/issues/73/events","html_url":"https://github.com/peteboere/css-crush/issues/73","id":83475699,"number":73,"title":"If/else in CSS-Crush ","user":{"login":"thesigngroup","id":2122606,"avatar_url":"https://avatars.githubusercontent.com/u/2122606?v=3","gravatar_id":"","url":"https://api.github.com/users/thesigngroup","html_url":"https://github.com/thesigngroup","followers_url":"https://api.github.com/users/thesigngroup/followers","following_url":"https://api.github.com/users/thesigngroup/following{/other_user}","gists_url":"https://api.github.com/users/thesigngroup/gists{/gist_id}","starred_url":"https://api.github.com/users/thesigngroup/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/thesigngroup/subscriptions","organizations_url":"https://api.github.com/users/thesigngroup/orgs","repos_url":"https://api.github.com/users/thesigngroup/repos","events_url":"https://api.github.com/users/thesigngroup/events{/privacy}","received_events_url":"https://api.github.com/users/thesigngroup/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":0,"created_at":"2015-06-01T12:48:50Z","updated_at":"2015-06-01T12:48:50Z","closed_at":null,"body":"Hi Pete, is there a change to use a if/else statement in CSS Crush?\r\n\r\nfor example:\r\n```\r\nset {\r\n foo: small; /* small, medium or big */\r\n color-1: red;\r\n color-2: green;\r\n}\r\n\r\n@ifset foo(small) {\r\n  p {\r\n   background-color: $(color-1);\r\n  }\r\n}\r\n@ifset foo(medium) {\r\n  p {\r\n    background-color: $(color-2);\r\n }\r\n}\r\n@ifset not foo {\r\n  p {\r\n   background-color: black;\r\n }\r\n}\r\n```\r\nThis feature would be great! \r\n\r\nFor example, in the SASS is possible in the following way :  [Link] (https://teamtreehouse.com/forum/ifelse-in-sass#answer-507062)\r\n\r\nThanks Dave"}}