Permalink
Browse files

Update README.md

  • Loading branch information...
1 parent 6eff56e commit 9d2863b6d2e07bc821628bf9a8c0d71d18cb6bb0 @tmcw tmcw committed May 8, 2012
Showing with 27 additions and 0 deletions.
  1. +27 −0 README.md
View
@@ -203,6 +203,33 @@ By defining multiple fonts in a `text-face-name` definition, you create [FontSet
<tr>
</table>
+## Filters
+
+Carto supports a variety of filter styles:
+
+Numeric comparisons:
+
+```
+#world[population > 100]
+#world[population < 100]
+#world[population >= 100]
+#world[population <= 100]
+```
+
+General comparisons:
+
+```
+#world[population = 100]
+#world[population != 100]
+```
+
+
+String comparisons:
+
+```
+/* a regular expression over name */
+#world[name =~ "A.*"]
+```
## Usage

0 comments on commit 9d2863b

Please sign in to comment.