From b41524f12910c670b4f2f57d14f4c5e331718294 Mon Sep 17 00:00:00 2001 From: pantor Date: Wed, 17 Nov 2021 11:14:46 +0100 Subject: [PATCH] fix loop variables --- README.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/README.md b/README.md index aada14f..9d66a2c 100644 --- a/README.md +++ b/README.md @@ -153,7 +153,7 @@ render(R"(Guest List: 2: Tom 3: Patrick */ ``` -In a loop, the special variables `loop/index (number)`, `loop/index1 (number)`, `loop/is_first (boolean)` and `loop/is_last (boolean)` are defined. In nested loops, the parent loop variables are available e.g. via `loop/parent/index`. You can also iterate over objects like `{% for key, value in time %}`. +In a loop, the special variables `loop.index (number)`, `loop.index1 (number)`, `loop.is_first (boolean)` and `loop.is_last (boolean)` are defined. In nested loops, the parent loop variables are available e.g. via `loop.parent.index`. You can also iterate over objects like `{% for key, value in time %}`. #### Conditions