Skip to content

Commit 9c0420a

Browse files
authored
Clarify indexer example in README (#16)
1 parent d974321 commit 9c0420a

File tree

1 file changed

+4
-3
lines changed

1 file changed

+4
-3
lines changed

README.md

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -105,11 +105,11 @@ using object literals:
105105

106106
## Language reference
107107

108-
### Built-in properties
108+
### Properties
109109

110110
The following properties are available in expressions:
111111

112-
* All first-class properties of the event; no special syntax: `SourceContext` and `Items` are used in the formatting example above
112+
* **All first-class properties of the event** — no special syntax: `SourceContext` and `Items` are used in the formatting example above
113113
* `@t` - the event's timestamp, as a `DateTimeOffset`
114114
* `@m` - the rendered message
115115
* `@mt` - the raw message template
@@ -142,7 +142,8 @@ A typical set of operators is supported:
142142
* Existence `is null` and `is not null`
143143
* SQL-style `like` and `not like`, with `%` and `_` wildcards (double wildcards to escape them)
144144
* Array membership with `in` and `not in`
145-
* Indexers `a[b]` and accessors `a.b`
145+
* Accessors `a.b`
146+
* Indexers `a['b']` and `a[0]`
146147
* Wildcard indexing - `a[?]` any, and `a[*]` all
147148
* Conditional `if a then b else c` (all branches required)
148149

0 commit comments

Comments
 (0)