Skip to content

Commit ae53dab

Browse files
authored
Merge pull request #80 from serilog/adamchester/check-empty-object-readme
Add a recipie for checking if an object is empty
2 parents 0fcbae0 + 02cdd88 commit ae53dab

File tree

1 file changed

+6
-0
lines changed

1 file changed

+6
-0
lines changed

README.md

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -279,6 +279,12 @@ Substring(SourceContext, LastIndexOf(SourceContext, '.') + 1)
279279

280280
This expression takes advantage of `LastIndexOf()` returning -1 when no `.` character appears in `SourceContext`, to yield a `startIndex` of 0 in that case.
281281

282+
**Write not-referenced context properties, only if there any:**
283+
284+
```
285+
{#if rest(true) <> {}} <Context: {rest(true)}>{#end}
286+
```
287+
282288
**Access a property with a non-identifier name:**
283289

284290
```

0 commit comments

Comments
 (0)