feat(for loop): added property for loop length (#171)
This commit is contained in:
@@ -132,6 +132,7 @@ class ForNode : NodeType {
|
||||
"last": index == (count - 1),
|
||||
"counter": index + 1,
|
||||
"counter0": index,
|
||||
"length": count
|
||||
]
|
||||
|
||||
return try context.push(dictionary: ["forloop": forContext]) {
|
||||
|
||||
Reference in New Issue
Block a user