{"issue":{"created_at":"2011-12-02T20:28:27Z","state":"open","updated_at":"2011-12-02T21:23:53Z","comments":1,"user":{"gravatar_id":"4eb8fb3eaf6d0dde869e009b93628b51","id":192568,"url":"https://api.github.com/users/mroswell","avatar_url":"https://secure.gravatar.com/avatar/4eb8fb3eaf6d0dde869e009b93628b51?d=https://a248.e.akamai.net/assets.github.com%2Fimages%2Fgravatars%2Fgravatar-140.png","login":"mroswell"},"body":"Is there styling in Carto across multiple data fields?\r\n For instance: \r\nIf AgCommittee='Y' and Party=\"R\" color Red\r\nIf AgCommittee='Y' and Part='D' color Blue\r\nIf Ag Committee is Null color white\r\n\r\nI would imagine a syntax such as: \r\n\r\n    #Congress [AgCommittee='Y' AND Party = 'R'] {\r\n    polygon-fill: @red;\r\n    }\r\n\r\nOr, do I need to pre-process all this in a GIS (by adding a color-by field with entries such as 'AgDem' and AgRepub'?\r\n\r\nRelated to this, if I edit a file in a GIS, for instance QGIS, is there a way to have the file updates be reflected in the currently opened TileMill. \r\n","assignee":null,"number":986,"id":2432655,"labels":[],"pull_request":{"patch_url":null,"html_url":null,"diff_url":null},"title":"Multiple-field styling? Live updates?","closed_at":null,"html_url":"https://github.com/mapbox/tilemill/issues/986","url":"https://api.github.com/repos/mapbox/tilemill/issues/986","milestone":null},"action":"created","comment":{"created_at":"2011-12-02T21:23:53Z","updated_at":"2011-12-02T21:23:53Z","user":{"gravatar_id":"69a180136f3c237769452a4af0bbb9a1","id":32314,"url":"https://api.github.com/users/tmcw","avatar_url":"https://secure.gravatar.com/avatar/69a180136f3c237769452a4af0bbb9a1?d=https://a248.e.akamai.net/assets.github.com%2Fimages%2Fgravatars%2Fgravatar-140.png","login":"tmcw"},"body":"Hey @mroswell: sure, what you're looking for is expressed in Carto as\r\n\r\n\r\n    #Congress [AgCommittee='Y'][Party = 'R'] {\r\n    polygon-fill: @red;\r\n    }\r\n\r\nI'm not sure about your cache question offhand - I think there's some control of this, but not sure.","id":2996042,"url":"https://api.github.com/repos/mapbox/tilemill/issues/comments/2996042"}}