<blocksapp="Snap! 5.1, http://snap.berkeley.edu"version="1"><block-definitions="sum %'nums'"type="reporter"category="operators"><commentw="202"collapsed="false">Takes any number of numbers as inputs (use the left and right arrowheads to adjust the number of input slots) and reports the result of adding them all, so
(SUM (4) (100) (8))
reports 112.</comment><header></header><code></code><translations>pt:a soma de _
</translations><inputs><inputtype="%mult%n"></input></inputs><script><blocks="doIf"><blocks="reportListIsEmpty"><blockvar="nums"/></block><script><blocks="doReport"><l>0</l></block></script></block><blocks="doReport"><blocks="reportSum"><blocks="reportListItem"><l>1</l><blockvar="nums"/></block><custom-blocks="sum %mult%n"><blocks="reportCDR"><blockvar="nums"/></block></custom-block></block></block></script></block-definition><block-definitions="product %'nums'"type="reporter"category="operators"><commentw="205"collapsed="false">Takes any number of numbers as inputs (use the left and right arrowheads to adjust the number of input slots) and reports the result of multiplying them all, so
(PRODUCT (4) (100) (8))
reports 3200.</comment><header></header><code></code><translations>pt:o produto de _
</translations><inputs><inputtype="%mult%n"></input></inputs><script><blocks="doIf"><blocks="reportListIsEmpty"><blockvar="nums"/></block><script><blocks="doReport"><l>1</l></block></script></block><blocks="doReport"><blocks="reportProduct"><blocks="reportListItem"><l>1</l><blockvar="nums"/></block><custom-blocks="product %mult%n"><blocks="reportCDR"><blockvar="nums"/></block></custom-block></block></block></script></block-definition><block-definitions="all of %'preds'"type="predicate"category="operators"><commentw="248"collapsed="false">Takes any number of Boolean (true/false) inputs (use the left and right arrowheads to adjust the number of input slots) and reports TRUE only if all of the inputs are TRUE, otherwise FALSE. Like AND but for multiple inputs.</comment><header></header><code></code><translations>pt:todas as afirmações _ são verdadeiras
</translations><inputs><inputtype="%mult%boolUE"></input></inputs><script><blocks="doIf"><blocks="reportListIsEmpty"><blockvar="preds"/></block><script><blocks="doReport"><blocks="reportBoolean"><l><bool>true</bool></l></block></block></script></block><blocks="doReport"><blocks="reportAnd"><blocks="evaluate"><blocks="reportListItem"><l>1</l><blockvar="preds"/></block><list></list></block><custom-blocks="all of %mult%boolUE"><blocks="reportCDR"><blockvar="preds"/></block></custom-block></block></block></script></block-definition><block-definitions="any of %'preds'"type="predicate"category="operators"><commentw="240"collapsed="false">Takes any number of Boolean (true/false) inputs (use the left and right arrowheads to adjust the number of input slots) and reports TRUE if at least one input is TRUE, otherwise FALSE.</comment><header></header><code></code><translations>pt:alguma das afirmações _ é verdadeira
</translations><inputs><inputtype="%mult%boolUE"></input></inputs><script><blocks="doIf"><blocks="reportListIsEmpty"><blockvar="preds"/></block><script><blocks="doReport"><blocks="reportBoolean"><l><bool>false</bool></l></block></block></script></block><blocks="doReport"><blocks="reportOr"><blocks="evaluate"><blocks="reportListItem"><l>1</l><blockvar="preds"/></block><list></list></block><custom-blocks="any of %mult%boolUE"><blocks="reportCDR"><blockvar="preds"/></block></custom-block></block></block></script></block-definition></blocks>