title: can i use for statement in .kv file?
body: <pre><code>GridLayout:
      cols:
      rows: root.numberoflist
  
      for i in range(root.businfolist): 
          Label:
              font_name: 'C:/Windows/Fonts/HYWULM'
              text_size: cm(2), cm(2)
              pos: self.pos
              id: my_custom_label
              text: root.businfolist[0]
              color: [255,255,255,1]
  </code></pre>
  
  <p>.kv file </p>
  
  <p>i want use FOR STATEMENT to .kv file and i saw the </p>
  
  <p><a href="https://kivy.org/docs/api-kivy.lang.html?highlight=statement" rel="nofollow noreferrer">https://kivy.org/docs/api-kivy.lang.html?highlight=statement</a></p>
  
  <p>this page, but i don't understand.</p>
  
  <p>i think indentation seems to be wrong. 
  what is wrong with these code?</p>
  
  <p>traceback is here thank you for read my question.</p>
  
  <pre><code> Traceback (most recent call last):
     File "C:/Users/mg/Desktop/Tubuc/TubucTest.py", line 58, in &lt;module&gt;
       class Bus_Information(Screen):
     File "C:/Users/mg/Desktop/Tubuc/TubucTest.py", line 60, in Bus_Information
       Builder.load_string(f.read())
     File "C:\Users\mg\Anaconda3\lib\site-packages\kivy\lang\builder.py", line 368, in load_string
       parser = Parser(content=string, filename=fn)
     File "C:\Users\mg\Anaconda3\lib\site-packages\kivy\lang\parser.py", line 392, in __init__
       self.parse(content)
     File "C:\Users\mg\Anaconda3\lib\site-packages\kivy\lang\parser.py", line 501, in parse
       objects, remaining_lines = self.parse_level(0, lines)
     File "C:\Users\mg\Anaconda3\lib\site-packages\kivy\lang\parser.py", line 605, in parse_level
       level + 1, lines[i:], spaces)
     File "C:\Users\mg\Anaconda3\lib\site-packages\kivy\lang\parser.py", line 615, in parse_level
       'Invalid property name')
   kivy.lang.parser.ParserException: Parser: File "&lt;inline&gt;", line 28:
   ...
        26:       rows: root.numberoflist
        27:       
   &gt;&gt;   28:       for i in range(root.businfolist): 
        29:           Label:
        30:               font_name: 'C:/Windows/Fonts/HYWULM'
   ...
   Invalid property name
  </code></pre>