File "loops2.xml"

Full path: /usr/home/mndrn/domains/mndrn.ru/public_html/block-hill/blockly/tests/generators/loops2.xml
File size: 56.49 KiB (57849 bytes)
MIME-type: text/plain
Charset: utf-8

Download   Open   Back

<xml xmlns="https://developers.google.com/blockly/xml">
  <block type="unittest_main" x="66" y="-2">
    <field name="SUITE_NAME">Loops 2</field>
    <statement name="DO">
      <block type="procedures_callnoreturn">
        <mutation name="test count loops"></mutation>
        <next>
          <block type="procedures_callnoreturn">
            <mutation name="test count by"></mutation>
          </block>
        </next>
      </block>
    </statement>
  </block>
  <block type="procedures_defnoreturn" x="679" y="-10">
    <field name="NAME">test count by</field>
    <statement name="STACK">
      <block type="variables_set" inline="false">
        <field name="VAR">log</field>
        <value name="VALUE">
          <block type="text">
            <field name="TEXT"></field>
          </block>
        </value>
        <next>
          <block type="controls_for">
            <field name="VAR">x</field>
            <value name="FROM">
              <block type="math_number">
                <field name="NUM">1</field>
              </block>
            </value>
            <value name="TO">
              <block type="math_number">
                <field name="NUM">8</field>
              </block>
            </value>
            <value name="BY">
              <block type="math_number">
                <field name="NUM">2</field>
              </block>
            </value>
            <statement name="DO">
              <block type="text_append" inline="false">
                <field name="VAR">log</field>
                <value name="TEXT">
                  <block type="variables_get">
                    <field name="VAR">x</field>
                  </block>
                </value>
              </block>
            </statement>
            <next>
              <block type="unittest_assertequals" inline="false">
                <value name="MESSAGE">
                   <block type="text">
                     <field name="TEXT">count up ints</field>
                   </block>
                 </value>
                <value name="ACTUAL">
                  <block type="variables_get">
                    <field name="VAR">log</field>
                  </block>
                </value>
                <value name="EXPECTED">
                  <block type="text">
                    <field name="TEXT">1357</field>
                  </block>
                </value>
                <next>
                  <block type="variables_set" inline="false">
                    <field name="VAR">log</field>
                    <value name="VALUE">
                      <block type="text">
                        <field name="TEXT"></field>
                      </block>
                    </value>
                    <next>
                      <block type="controls_for">
                        <field name="VAR">x</field>
                        <value name="FROM">
                          <block type="math_number">
                            <field name="NUM">8</field>
                          </block>
                        </value>
                        <value name="TO">
                          <block type="math_number">
                            <field name="NUM">1</field>
                          </block>
                        </value>
                        <value name="BY">
                          <block type="math_number">
                            <field name="NUM">2</field>
                          </block>
                        </value>
                        <statement name="DO">
                          <block type="text_append" inline="false">
                            <field name="VAR">log</field>
                            <value name="TEXT">
                              <block type="variables_get">
                                <field name="VAR">x</field>
                              </block>
                            </value>
                          </block>
                        </statement>
                        <next>
                          <block type="unittest_assertequals" inline="false">
                            <value name="MESSAGE">
                               <block type="text">
                                 <field name="TEXT">count down ints</field>
                               </block>
                             </value>
                            <value name="ACTUAL">
                              <block type="variables_get">
                                <field name="VAR">log</field>
                              </block>
                            </value>
                            <value name="EXPECTED">
                              <block type="text">
                                <field name="TEXT">8642</field>
                              </block>
                            </value>
                            <next>
                              <block type="variables_set" inline="false">
                                <field name="VAR">loglist</field>
                                <value name="VALUE">
                                  <block type="lists_create_empty"></block>
                                </value>
                                <next>
                                  <block type="controls_for">
                                    <field name="VAR">x</field>
                                    <value name="FROM">
                                      <block type="math_number">
                                        <field name="NUM">1</field>
                                      </block>
                                    </value>
                                    <value name="TO">
                                      <block type="math_number">
                                        <field name="NUM">8</field>
                                      </block>
                                    </value>
                                    <value name="BY">
                                      <block type="math_number">
                                        <field name="NUM">1.5</field>
                                      </block>
                                    </value>
                                    <statement name="DO">
                                      <block type="lists_setIndex">
                                        <mutation at="false"></mutation>
                                        <field name="MODE">INSERT</field>
                                        <field name="WHERE">LAST</field>
                                        <value name="LIST">
                                          <block type="variables_get">
                                            <field name="VAR">loglist</field>
                                          </block>
                                        </value>
                                        <value name="TO">
                                          <block type="variables_get">
                                            <field name="VAR">x</field>
                                          </block>
                                        </value>
                                      </block>
                                    </statement>
                                    <next>
                                      <block type="unittest_assertequals" inline="false">
                                        <value name="MESSAGE">
                                           <block type="text">
                                             <field name="TEXT">count with floats</field>
                                           </block>
                                         </value>
                                        <value name="ACTUAL">
                                          <block type="variables_get">
                                            <field name="VAR">loglist</field>
                                          </block>
                                        </value>
                                        <value name="EXPECTED">
                                          <block type="lists_create_with" inline="false">
                                            <mutation items="5"></mutation>
                                            <value name="ADD0">
                                              <block type="math_number">
                                                <field name="NUM">1</field>
                                              </block>
                                            </value>
                                            <value name="ADD1">
                                              <block type="math_number">
                                                <field name="NUM">2.5</field>
                                              </block>
                                            </value>
                                            <value name="ADD2">
                                              <block type="math_number">
                                                <field name="NUM">4</field>
                                              </block>
                                            </value>
                                            <value name="ADD3">
                                              <block type="math_number">
                                                <field name="NUM">5.5</field>
                                              </block>
                                            </value>
                                            <value name="ADD4">
                                              <block type="math_number">
                                                <field name="NUM">7</field>
                                              </block>
                                            </value>
                                          </block>
                                        </value>
                                        <next>
                                          <block type="variables_set" inline="false">
                                            <field name="VAR">loglist</field>
                                            <value name="VALUE">
                                              <block type="lists_create_empty"></block>
                                            </value>
                                            <next>
                                              <block type="controls_for">
                                                <field name="VAR">x</field>
                                                <value name="FROM">
                                                  <block type="math_arithmetic">
                                                    <field name="OP">ADD</field>
                                                    <value name="A">
                                                      <block type="math_number">
                                                        <field name="NUM">1</field>
                                                      </block>
                                                    </value>
                                                    <value name="B">
                                                      <block type="math_number">
                                                        <field name="NUM">0</field>
                                                      </block>
                                                    </value>
                                                  </block>
                                                </value>
                                                <value name="TO">
                                                  <block type="math_arithmetic">
                                                    <field name="OP">ADD</field>
                                                    <value name="A">
                                                      <block type="math_number">
                                                        <field name="NUM">8</field>
                                                      </block>
                                                    </value>
                                                    <value name="B">
                                                      <block type="math_number">
                                                        <field name="NUM">0</field>
                                                      </block>
                                                    </value>
                                                  </block>
                                                </value>
                                                <value name="BY">
                                                  <block type="math_arithmetic">
                                                    <field name="OP">MINUS</field>
                                                    <value name="A">
                                                      <block type="math_number">
                                                        <field name="NUM">1</field>
                                                      </block>
                                                    </value>
                                                    <value name="B">
                                                      <block type="math_number">
                                                        <field name="NUM">2</field>
                                                      </block>
                                                    </value>
                                                  </block>
                                                </value>
                                                <statement name="DO">
                                                  <block type="lists_setIndex">
                                                    <mutation at="false"></mutation>
                                                    <field name="MODE">INSERT</field>
                                                    <field name="WHERE">LAST</field>
                                                    <value name="LIST">
                                                      <block type="variables_get">
                                                        <field name="VAR">loglist</field>
                                                      </block>
                                                    </value>
                                                    <value name="TO">
                                                      <block type="variables_get">
                                                        <field name="VAR">x</field>
                                                      </block>
                                                    </value>
                                                  </block>
                                                </statement>
                                                <next>
                                                  <block type="unittest_assertequals" inline="false">
                                                    <value name="MESSAGE">
                                                       <block type="text">
                                                         <field name="TEXT">count up non-trivial ints</field>
                                                       </block>
                                                     </value>
                                                    <value name="ACTUAL">
                                                      <block type="variables_get">
                                                        <field name="VAR">loglist</field>
                                                      </block>
                                                    </value>
                                                    <value name="EXPECTED">
                                                      <block type="lists_create_with" inline="false">
                                                        <mutation items="8"></mutation>
                                                        <value name="ADD0">
                                                          <block type="math_number">
                                                            <field name="NUM">1</field>
                                                          </block>
                                                        </value>
                                                        <value name="ADD1">
                                                          <block type="math_number">
                                                            <field name="NUM">2</field>
                                                          </block>
                                                        </value>
                                                        <value name="ADD2">
                                                          <block type="math_number">
                                                            <field name="NUM">3</field>
                                                          </block>
                                                        </value>
                                                        <value name="ADD3">
                                                          <block type="math_number">
                                                            <field name="NUM">4</field>
                                                          </block>
                                                        </value>
                                                        <value name="ADD4">
                                                          <block type="math_number">
                                                            <field name="NUM">5</field>
                                                          </block>
                                                        </value>
                                                        <value name="ADD5">
                                                          <block type="math_number">
                                                            <field name="NUM">6</field>
                                                          </block>
                                                        </value>
                                                        <value name="ADD6">
                                                          <block type="math_number">
                                                            <field name="NUM">7</field>
                                                          </block>
                                                        </value>
                                                        <value name="ADD7">
                                                          <block type="math_number">
                                                            <field name="NUM">8</field>
                                                          </block>
                                                        </value>
                                                      </block>
                                                    </value>
                                                    <next>
                                                      <block type="variables_set" inline="false">
                                                        <field name="VAR">loglist</field>
                                                        <value name="VALUE">
                                                          <block type="lists_create_empty"></block>
                                                        </value>
                                                        <next>
                                                          <block type="controls_for">
                                                            <field name="VAR">x</field>
                                                            <value name="FROM">
                                                              <block type="math_arithmetic">
                                                                <field name="OP">ADD</field>
                                                                <value name="A">
                                                                  <block type="math_number">
                                                                    <field name="NUM">8</field>
                                                                  </block>
                                                                </value>
                                                                <value name="B">
                                                                  <block type="math_number">
                                                                    <field name="NUM">0</field>
                                                                  </block>
                                                                </value>
                                                              </block>
                                                            </value>
                                                            <value name="TO">
                                                              <block type="math_arithmetic">
                                                                <field name="OP">ADD</field>
                                                                <value name="A">
                                                                  <block type="math_number">
                                                                    <field name="NUM">1</field>
                                                                  </block>
                                                                </value>
                                                                <value name="B">
                                                                  <block type="math_number">
                                                                    <field name="NUM">0</field>
                                                                  </block>
                                                                </value>
                                                              </block>
                                                            </value>
                                                            <value name="BY">
                                                              <block type="math_number">
                                                                <field name="NUM">2</field>
                                                              </block>
                                                            </value>
                                                            <statement name="DO">
                                                              <block type="lists_setIndex">
                                                                <mutation at="false"></mutation>
                                                                <field name="MODE">INSERT</field>
                                                                <field name="WHERE">LAST</field>
                                                                <value name="LIST">
                                                                  <block type="variables_get">
                                                                    <field name="VAR">loglist</field>
                                                                  </block>
                                                                </value>
                                                                <value name="TO">
                                                                  <block type="variables_get">
                                                                    <field name="VAR">x</field>
                                                                  </block>
                                                                </value>
                                                              </block>
                                                            </statement>
                                                            <next>
                                                              <block type="unittest_assertequals" inline="false">
                                                                <value name="MESSAGE">
                                                                   <block type="text">
                                                                     <field name="TEXT">count down non-trivial ints</field>
                                                                   </block>
                                                                 </value>
                                                                <value name="ACTUAL">
                                                                  <block type="variables_get">
                                                                    <field name="VAR">loglist</field>
                                                                  </block>
                                                                </value>
                                                                <value name="EXPECTED">
                                                                  <block type="lists_create_with" inline="false">
                                                                    <mutation items="4"></mutation>
                                                                    <value name="ADD0">
                                                                      <block type="math_number">
                                                                        <field name="NUM">8</field>
                                                                      </block>
                                                                    </value>
                                                                    <value name="ADD1">
                                                                      <block type="math_number">
                                                                        <field name="NUM">6</field>
                                                                      </block>
                                                                    </value>
                                                                    <value name="ADD2">
                                                                      <block type="math_number">
                                                                        <field name="NUM">4</field>
                                                                      </block>
                                                                    </value>
                                                                    <value name="ADD3">
                                                                      <block type="math_number">
                                                                        <field name="NUM">2</field>
                                                                      </block>
                                                                    </value>
                                                                  </block>
                                                                </value>
                                                                <next>
                                                                  <block type="variables_set" inline="false">
                                                                    <field name="VAR">loglist</field>
                                                                    <value name="VALUE">
                                                                      <block type="lists_create_empty"></block>
                                                                    </value>
                                                                    <next>
                                                                      <block type="controls_for">
                                                                        <field name="VAR">x</field>
                                                                        <value name="FROM">
                                                                          <block type="math_arithmetic">
                                                                            <field name="OP">ADD</field>
                                                                            <value name="A">
                                                                              <block type="math_number">
                                                                                <field name="NUM">5</field>
                                                                              </block>
                                                                            </value>
                                                                            <value name="B">
                                                                              <block type="math_number">
                                                                                <field name="NUM">0.5</field>
                                                                              </block>
                                                                            </value>
                                                                          </block>
                                                                        </value>
                                                                        <value name="TO">
                                                                          <block type="math_arithmetic">
                                                                            <field name="OP">ADD</field>
                                                                            <value name="A">
                                                                              <block type="math_number">
                                                                                <field name="NUM">1</field>
                                                                              </block>
                                                                            </value>
                                                                            <value name="B">
                                                                              <block type="math_number">
                                                                                <field name="NUM">0</field>
                                                                              </block>
                                                                            </value>
                                                                          </block>
                                                                        </value>
                                                                        <value name="BY">
                                                                          <block type="math_arithmetic">
                                                                            <field name="OP">ADD</field>
                                                                            <value name="A">
                                                                              <block type="math_number">
                                                                                <field name="NUM">1</field>
                                                                              </block>
                                                                            </value>
                                                                            <value name="B">
                                                                              <block type="math_number">
                                                                                <field name="NUM">0</field>
                                                                              </block>
                                                                            </value>
                                                                          </block>
                                                                        </value>
                                                                        <statement name="DO">
                                                                          <block type="lists_setIndex">
                                                                            <mutation at="false"></mutation>
                                                                            <field name="MODE">INSERT</field>
                                                                            <field name="WHERE">LAST</field>
                                                                            <value name="LIST">
                                                                              <block type="variables_get">
                                                                                <field name="VAR">loglist</field>
                                                                              </block>
                                                                            </value>
                                                                            <value name="TO">
                                                                              <block type="variables_get">
                                                                                <field name="VAR">x</field>
                                                                              </block>
                                                                            </value>
                                                                          </block>
                                                                        </statement>
                                                                        <next>
                                                                          <block type="unittest_assertequals" inline="false">
                                                                            <value name="MESSAGE">
                                                                               <block type="text">
                                                                                 <field name="TEXT">count with floats</field>
                                                                               </block>
                                                                             </value>
                                                                            <value name="ACTUAL">
                                                                              <block type="variables_get">
                                                                                <field name="VAR">loglist</field>
                                                                              </block>
                                                                            </value>
                                                                            <value name="EXPECTED">
                                                                              <block type="lists_create_with" inline="false">
                                                                                <mutation items="5"></mutation>
                                                                                <value name="ADD0">
                                                                                  <block type="math_number">
                                                                                    <field name="NUM">5.5</field>
                                                                                  </block>
                                                                                </value>
                                                                                <value name="ADD1">
                                                                                  <block type="math_number">
                                                                                    <field name="NUM">4.5</field>
                                                                                  </block>
                                                                                </value>
                                                                                <value name="ADD2">
                                                                                  <block type="math_number">
                                                                                    <field name="NUM">3.5</field>
                                                                                  </block>
                                                                                </value>
                                                                                <value name="ADD3">
                                                                                  <block type="math_number">
                                                                                    <field name="NUM">2.5</field>
                                                                                  </block>
                                                                                </value>
                                                                                <value name="ADD4">
                                                                                  <block type="math_number">
                                                                                    <field name="NUM">1.5</field>
                                                                                  </block>
                                                                                </value>
                                                                              </block>
                                                                            </value>
                                                                          </block>
                                                                        </next>
                                                                      </block>
                                                                    </next>
                                                                  </block>
                                                                </next>
                                                              </block>
                                                            </next>
                                                          </block>
                                                        </next>
                                                      </block>
                                                    </next>
                                                  </block>
                                                </next>
                                              </block>
                                            </next>
                                          </block>
                                        </next>
                                      </block>
                                    </next>
                                  </block>
                                </next>
                              </block>
                            </next>
                          </block>
                        </next>
                      </block>
                    </next>
                  </block>
                </next>
              </block>
            </next>
          </block>
        </next>
      </block>
    </statement>
  </block>
  <block type="procedures_defnoreturn" x="29" y="184">
    <field name="NAME">test count loops</field>
    <statement name="STACK">
      <block type="variables_set" inline="false">
        <field name="VAR">log</field>
        <value name="VALUE">
          <block type="text">
            <field name="TEXT"></field>
          </block>
        </value>
        <next>
          <block type="controls_for">
            <field name="VAR">x</field>
            <value name="FROM">
              <block type="math_number">
                <field name="NUM">1</field>
              </block>
            </value>
            <value name="TO">
              <block type="math_number">
                <field name="NUM">8</field>
              </block>
            </value>
            <statement name="DO">
              <block type="text_append" inline="false">
                <field name="VAR">log</field>
                <value name="TEXT">
                  <block type="variables_get">
                    <field name="VAR">x</field>
                  </block>
                </value>
              </block>
            </statement>
            <next>
              <block type="unittest_assertequals" inline="false">
                <value name="MESSAGE">
                   <block type="text">
                     <field name="TEXT">count up</field>
                   </block>
                 </value>
                <value name="ACTUAL">
                  <block type="variables_get">
                    <field name="VAR">log</field>
                  </block>
                </value>
                <value name="EXPECTED">
                  <block type="text">
                    <field name="TEXT">12345678</field>
                  </block>
                </value>
                <next>
                  <block type="variables_set" inline="false">
                    <field name="VAR">log</field>
                    <value name="VALUE">
                      <block type="text">
                        <field name="TEXT"></field>
                      </block>
                    </value>
                    <next>
                      <block type="controls_for">
                        <field name="VAR">x</field>
                        <value name="FROM">
                          <block type="math_number">
                            <field name="NUM">8</field>
                          </block>
                        </value>
                        <value name="TO">
                          <block type="math_number">
                            <field name="NUM">1</field>
                          </block>
                        </value>
                        <statement name="DO">
                          <block type="text_append" inline="false">
                            <field name="VAR">log</field>
                            <value name="TEXT">
                              <block type="variables_get">
                                <field name="VAR">x</field>
                              </block>
                            </value>
                          </block>
                        </statement>
                        <next>
                          <block type="unittest_assertequals" inline="false">
                            <value name="MESSAGE">
                               <block type="text">
                                 <field name="TEXT">count down</field>
                               </block>
                             </value>
                            <value name="ACTUAL">
                              <block type="variables_get">
                                <field name="VAR">log</field>
                              </block>
                            </value>
                            <value name="EXPECTED">
                              <block type="text">
                                <field name="TEXT">87654321</field>
                              </block>
                            </value>
                            <next>
                              <block type="variables_set" inline="false">
                                <field name="VAR">loglist</field>
                                <value name="VALUE">
                                  <block type="lists_create_empty"></block>
                                </value>
                                <next>
                                  <block type="controls_for">
                                    <field name="VAR">x</field>
                                    <value name="FROM">
                                      <block type="math_arithmetic">
                                        <field name="OP">ADD</field>
                                        <value name="A">
                                          <block type="math_number">
                                            <field name="NUM">1</field>
                                          </block>
                                        </value>
                                        <value name="B">
                                          <block type="math_number">
                                            <field name="NUM">0</field>
                                          </block>
                                        </value>
                                      </block>
                                    </value>
                                    <value name="TO">
                                      <block type="math_arithmetic">
                                        <field name="OP">ADD</field>
                                        <value name="A">
                                          <block type="math_number">
                                            <field name="NUM">4</field>
                                          </block>
                                        </value>
                                        <value name="B">
                                          <block type="math_number">
                                            <field name="NUM">0</field>
                                          </block>
                                        </value>
                                      </block>
                                    </value>
                                    <statement name="DO">
                                      <block type="lists_setIndex">
                                        <mutation at="false"></mutation>
                                        <field name="MODE">INSERT</field>
                                        <field name="WHERE">LAST</field>
                                        <value name="LIST">
                                          <block type="variables_get">
                                            <field name="VAR">loglist</field>
                                          </block>
                                        </value>
                                        <value name="TO">
                                          <block type="variables_get">
                                            <field name="VAR">x</field>
                                          </block>
                                        </value>
                                      </block>
                                    </statement>
                                    <next>
                                      <block type="unittest_assertequals" inline="false">
                                        <value name="MESSAGE">
                                           <block type="text">
                                             <field name="TEXT">count up non-trivial</field>
                                           </block>
                                         </value>
                                        <value name="ACTUAL">
                                          <block type="variables_get">
                                            <field name="VAR">loglist</field>
                                          </block>
                                        </value>
                                        <value name="EXPECTED">
                                          <block type="lists_create_with" inline="false">
                                            <mutation items="4"></mutation>
                                            <value name="ADD0">
                                              <block type="math_number">
                                                <field name="NUM">1</field>
                                              </block>
                                            </value>
                                            <value name="ADD1">
                                              <block type="math_number">
                                                <field name="NUM">2</field>
                                              </block>
                                            </value>
                                            <value name="ADD2">
                                              <block type="math_number">
                                                <field name="NUM">3</field>
                                              </block>
                                            </value>
                                            <value name="ADD3">
                                              <block type="math_number">
                                                <field name="NUM">4</field>
                                              </block>
                                            </value>
                                          </block>
                                        </value>
                                        <next>
                                          <block type="variables_set" inline="false">
                                            <field name="VAR">loglist</field>
                                            <value name="VALUE">
                                              <block type="lists_create_empty"></block>
                                            </value>
                                            <next>
                                              <block type="controls_for">
                                                <field name="VAR">x</field>
                                                <value name="FROM">
                                                  <block type="math_arithmetic">
                                                    <field name="OP">ADD</field>
                                                    <value name="A">
                                                      <block type="math_number">
                                                        <field name="NUM">3</field>
                                                      </block>
                                                    </value>
                                                    <value name="B">
                                                      <block type="math_number">
                                                        <field name="NUM">1</field>
                                                      </block>
                                                    </value>
                                                  </block>
                                                </value>
                                                <value name="TO">
                                                  <block type="math_arithmetic">
                                                    <field name="OP">ADD</field>
                                                    <value name="A">
                                                      <block type="math_number">
                                                        <field name="NUM">1</field>
                                                      </block>
                                                    </value>
                                                    <value name="B">
                                                      <block type="math_number">
                                                        <field name="NUM">0</field>
                                                      </block>
                                                    </value>
                                                  </block>
                                                </value>
                                                <statement name="DO">
                                                  <block type="lists_setIndex">
                                                    <mutation at="false"></mutation>
                                                    <field name="MODE">INSERT</field>
                                                    <field name="WHERE">LAST</field>
                                                    <value name="LIST">
                                                      <block type="variables_get">
                                                        <field name="VAR">loglist</field>
                                                      </block>
                                                    </value>
                                                    <value name="TO">
                                                      <block type="variables_get">
                                                        <field name="VAR">x</field>
                                                      </block>
                                                    </value>
                                                  </block>
                                                </statement>
                                                <next>
                                                  <block type="unittest_assertequals" inline="false">
                                                    <value name="MESSAGE">
                                                       <block type="text">
                                                         <field name="TEXT">count down non-trivial</field>
                                                       </block>
                                                     </value>
                                                    <value name="ACTUAL">
                                                      <block type="variables_get">
                                                        <field name="VAR">loglist</field>
                                                      </block>
                                                    </value>
                                                    <value name="EXPECTED">
                                                      <block type="lists_create_with" inline="false">
                                                        <mutation items="4"></mutation>
                                                        <value name="ADD0">
                                                          <block type="math_number">
                                                            <field name="NUM">4</field>
                                                          </block>
                                                        </value>
                                                        <value name="ADD1">
                                                          <block type="math_number">
                                                            <field name="NUM">3</field>
                                                          </block>
                                                        </value>
                                                        <value name="ADD2">
                                                          <block type="math_number">
                                                            <field name="NUM">2</field>
                                                          </block>
                                                        </value>
                                                        <value name="ADD3">
                                                          <block type="math_number">
                                                            <field name="NUM">1</field>
                                                          </block>
                                                        </value>
                                                      </block>
                                                    </value>
                                                  </block>
                                                </next>
                                              </block>
                                            </next>
                                          </block>
                                        </next>
                                      </block>
                                    </next>
                                  </block>
                                </next>
                              </block>
                            </next>
                          </block>
                        </next>
                      </block>
                    </next>
                  </block>
                </next>
              </block>
            </next>
          </block>
        </next>
      </block>
    </statement>
  </block>
</xml>

PHP File Manager