mirror of
https://github.com/google/blockly.git
synced 2026-01-04 15:40:08 +01:00
115 lines
4.2 KiB
XML
115 lines
4.2 KiB
XML
<xml xmlns="https://developers.google.com/blockly/xml">
|
|
<variables>
|
|
<variable id="4zqCO]S-jo+2^`maCt|K">x</variable>
|
|
<variable id="K/cNaUs{[7ol-9}CP7RL">i</variable>
|
|
<variable id="8ZxN/~:DTP3pX4eGrv2b">text</variable>
|
|
</variables>
|
|
<comment id="TUkxWVwnVb;#]^MfteT4" x="0" y="0" h="100" w="100">This is a workspace comment.
|
|
This is a new line on the workspace comment.
|
|
</comment>
|
|
<block type="procedures_defnoreturn" id="(i!.lvB^fBr,}8Lf_,9J" x="113" y="238">
|
|
<mutation>
|
|
<arg name="x" varid="4zqCO]S-jo+2^`maCt|K"/>
|
|
<arg name="i" varid="K/cNaUs{[7ol-9}CP7RL"/>
|
|
</mutation>
|
|
<field name="NAME">bar</field>
|
|
<comment pinned="false" h="80" w="160">Describe this function...</comment>
|
|
<statement name="STACK">
|
|
<block type="controls_if" id="K|8!{v)9/^^1=2GzXe[_">
|
|
<mutation elseif="1" else="1"/>
|
|
<value name="IF0">
|
|
<block type="logic_compare" id="#N?|av?JV]CnUOitJ4n$">
|
|
<field name="OP">LT</field>
|
|
<value name="A">
|
|
<block type="text_getSubstring" id="w,45*W^AcPera3-.x*wl" inline="false">
|
|
<mutation at1="false" at2="true"/>
|
|
<field name="WHERE1">FIRST</field>
|
|
<field name="WHERE2">FROM_START</field>
|
|
<value name="STRING">
|
|
<block type="variables_get" id="oF,qA%c[v(h6/iLJJ0Zn">
|
|
<field name="VAR" id="8ZxN/~:DTP3pX4eGrv2b">text</field>
|
|
</block>
|
|
</value>
|
|
</block>
|
|
</value>
|
|
<value name="B">
|
|
<block type="text_join" id="I@|f@k!fgu4yqO{s]3-W">
|
|
<mutation items="3"/>
|
|
</block>
|
|
</value>
|
|
</block>
|
|
</value>
|
|
<value name="IF1">
|
|
<block type="procedures_callreturn" id="P;p2LLz;hjJ@RE?:TVHc">
|
|
<mutation name="foo"/>
|
|
</block>
|
|
</value>
|
|
<statement name="DO1">
|
|
<block type="text_print" id="1~S=odLNrF|T(O.|Z2Gn">
|
|
<value name="TEXT">
|
|
<shadow type="text" id="|KS=0M,=!+@H1V/cuHSW">
|
|
<field name="TEXT"><html></field>
|
|
</shadow>
|
|
</value>
|
|
</block>
|
|
</statement>
|
|
<statement name="ELSE">
|
|
<block type="math_change" id="KiMt-oQI`=,FYKY5ZK=:">
|
|
<field name="VAR" id="K/cNaUs{[7ol-9}CP7RL">i</field>
|
|
<value name="DELTA">
|
|
<shadow type="math_number" id="-O]V4./`ipovlf]!:v![">
|
|
<field name="NUM">1</field>
|
|
</shadow>
|
|
</value>
|
|
</block>
|
|
</statement>
|
|
</block>
|
|
</statement>
|
|
</block>
|
|
<block type="logic_ternary" id="VhRm*A*n,#pZJdysUqQh" x="537" y="462"/>
|
|
<block type="procedures_defreturn" id="lpPefvcBM.yRI=OpBQ?A" x="213" y="637">
|
|
<field name="NAME">foo</field>
|
|
<comment pinned="false" h="80" w="160">This function does...
|
|
|
|
...nothing!
|
|
</comment>
|
|
<statement name="STACK">
|
|
<block type="procedures_ifreturn" id="?{hnO}N?G,L*XBAno{w6">
|
|
<mutation value="1"/>
|
|
<value name="CONDITION">
|
|
<block type="logic_boolean" id="jd[*W1IM5BX?g%BO+e;L">
|
|
<field name="BOOL">TRUE</field>
|
|
</block>
|
|
</value>
|
|
<value name="VALUE">
|
|
<block type="colour_rgb" id="|$B_?vvc2K?w89t!P,U8">
|
|
<value name="RED">
|
|
<shadow type="math_number" id="z}r5j$awNvVsBvyF50Ly">
|
|
<field name="NUM">100</field>
|
|
</shadow>
|
|
</value>
|
|
<value name="GREEN">
|
|
<shadow type="math_number" id="4%j`]!d#xCkG[_*p,7H2">
|
|
<field name="NUM">50</field>
|
|
</shadow>
|
|
</value>
|
|
<value name="BLUE">
|
|
<shadow type="math_number" id="~j/fzD+7+hB$6K[}#Ak/">
|
|
<field name="NUM">0</field>
|
|
</shadow>
|
|
</value>
|
|
</block>
|
|
</value>
|
|
<next>
|
|
<block type="procedures_callnoreturn" id="~3R~eK(7]~pbGFW$Idc-">
|
|
<mutation name="bar">
|
|
<arg name="x"/>
|
|
<arg name="i"/>
|
|
</mutation>
|
|
</block>
|
|
</next>
|
|
</block>
|
|
</statement>
|
|
</block>
|
|
</xml>
|