diff options
Diffstat (limited to 'docs/ref')
| -rw-r--r-- | docs/ref/templates/builtins.txt | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/docs/ref/templates/builtins.txt b/docs/ref/templates/builtins.txt index 8851fd50ea..247f5e9890 100644 --- a/docs/ref/templates/builtins.txt +++ b/docs/ref/templates/builtins.txt @@ -423,10 +423,15 @@ Variable Description loop (0-indexed) ``forloop.first`` True if this is the first time through the loop ``forloop.last`` True if this is the last time through the loop +``forloop.length`` The length of the loop ``forloop.parentloop`` For nested loops, this is the loop surrounding the current one ========================== =============================================== +.. versionchanged:: 6.0 + + The variable ``forloop.length`` was added. + ``for`` ... ``empty`` --------------------- |
