@@ -19,8 +19,11 @@ Given the following JSON object:
1919 "context" : {
2020 "library" : {
2121 "name" : " analytics.js" ,
22- "version" : " 1.0" ,
22+ "version" : " 1.0"
2323 }
24+ },
25+ "properties" : {
26+ "features" : [" discounts" , " dark-mode" ]
2427 }
2528}
2629```
@@ -38,6 +41,8 @@ The following FQL statements will evaluate as follows:
3841| ` match( context.library.version, '2.*' ) ` | ` false ` |
3942| ` type = 'track' and ( event = 'Click' or match( event, 'Button *' ) ) ` | ` true ` |
4043| ` !contains( context.library.name, 'js' ) ` | ` false ` |
44+ | ` 'dark-mode' in properties.features ` | ` true ` |
45+ | ` 'blink' in properties.features ` | ` false ` |
4146
4247## Field Paths
4348
@@ -100,6 +105,7 @@ If your field name has a character not in the set of `{a-z A-Z 0-9 _ -}`, you mu
100105| ` >= ` | ` number ` | ` number ` | ` true ` if the left side is greater than or equal to the right side. |
101106| ` < ` | ` number ` | ` number ` | ` true ` if the left side is less than the right side. |
102107| ` <= ` | ` number ` | ` number ` | ` true ` if the left side is less than or equal to the right side. |
108+ | ` in ` | ` string ` , ` number ` , ` bool ` , or ` null ` | ` list ` | ` true ` if the left side is contained in the list of values. |
103109
104110## Subexpressions
105111
@@ -109,6 +115,7 @@ You can use parentheses to group subexpressions for more complex "and / or" logi
109115| -------------------------------------------------------------------------------------------------------------- |
110116| ` type = 'track' and ( event = 'Click' or match( 'Button *', event ) ) ` |
111117| ` ( type = 'track' or type = 'identify' ) and ( properties.enabled or match( traits.email, '*@company.com' ) ) ` |
118+ | ` !( type in ['track', 'identify'] ) ` |
112119
113120## Functions
114121
0 commit comments