Skip to content

Commit

Permalink
Add a recipie for checking if an object is empty
Browse files Browse the repository at this point in the history
  • Loading branch information
adamchester committed Sep 23, 2022
1 parent 94645ab commit 02cdd88
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 02cdd88

Please sign in to comment.