             }
         case let .scope(name, flag, elements):
             switch stack[name] ?? false {
-            case let .boolean(bool):
-                if flag {
-                    if bool {
-                        return elements.lazy.map { $0.render(stack: stack) }.joined()
-                    }
-                } else if !bool {
-                    return elements.lazy.map { $0.render(stack: stack) }.joined()
-                }
-            case let .integer(count):
-                if flag {
-                    if count > 0 {
-                        return (0..<count).lazy.map {
-                            var stack = stack
-                            stack[name] = .integer($0)
-                            return elements.lazy.map { $0.render(stack: stack) }.joined()
-                            }.joined()
-                    }
-                } else if count == 0 {
-                    return elements.lazy.map { $0.render(stack: stack) }.joined()
-                }
             case let .object(object):
                 if flag {
                     var stack = stack

                } else if array.count == 0 {
                    return elements.lazy.map { $0.render(stack: stack) }.joined()
                }
            default: break
            }
        }

    }
    
    public enum Value {
        case object([String: Value])
        case array([Value])
        case template(SDMarker)
        case integer(IntMax)
        case boolean(Bool)
        case any(Any)
    }
    
    fileprivate let elements: [Element]
