Skip to content

Commit

Permalink
Merge pull request #80 from serilog/adamchester/check-empty-object-re…
Browse files Browse the repository at this point in the history
…adme

Add a recipie for checking if an object is empty
  • Loading branch information
nblumhardt authored Sep 30, 2022
2 parents 0fcbae0 + 02cdd88 commit ae53dab
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -279,6 +279,12 @@ Substring(SourceContext, LastIndexOf(SourceContext, '.') + 1)

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

**Write not-referenced context properties, only if there any:**

```
{#if rest(true) <> {}} <Context: {rest(true)}>{#end}
```

**Access a property with a non-identifier name:**

```
Expand Down

0 comments on commit ae53dab

Please sign in to comment.