if (6 * 7 == 42) {
window.alert('Dont panic');
} else {
window.alert('Panic');
}
if (6 * 7 == 42) {
print('Dont panic');
} else {
print('Panic');
}
if 6 * 7 == 42 then
print('Dont panic')
else
print('Panic')
end
main() {
if (6 * 7 == 42) {
print('Dont panic');
} else {
print('Panic');
}
}
if 6 * 7 == 42:
print('Dont panic')
else:
print('Panic')
<xml xmlns="https://developers.google.com/blockly/xml">
<block type="controls_if" id="JGWw_{w.:Nxq{*Jfht1?" inline="false" x="20" y="20">
<mutation else="1"/>
<value name="IF0">
<block type="logic_compare" id="@j*]z~~2QWDHSKB(Wz?#">
<field name="OP">EQ</field>
<value name="A">
<block type="math_arithmetic" id="=d!*by}ya/`?xK=spW:)">
<field name="OP">MULTIPLY</field>
<value name="A">
<block type="math_number" id="8{3Vfk_qn)8BAks/aXIy">
<field name="NUM">6</field>
</block>
</value>
<value name="B">
<block type="math_number" id="kDW:,Op]-noNe}{MZCg?">
<field name="NUM">7</field>
</block>
</value>
</block>
</value>
<value name="B">
<block type="math_number" id="1EJB+:;?-^Y)kEKM^MZ3">
<field name="NUM">42</field>
</block>
</value>
</block>
</value>
<statement name="DO0">
<block type="text_print" id=":F6-#)]M{G*|z[PfW@Q|" inline="false">
<value name="TEXT">
<block type="text" id="BF|l6Ms@Q7P@WL+x5{pX">
<field name="TEXT">Dont panic</field>
</block>
</value>
</block>
</statement>
<statement name="ELSE">
<block type="text_print" id="?.la=^7rfHFWjQ|H3w}N" inline="false">
<value name="TEXT">
<block type="text" id="iVl_PRJqthN}5K=7;%/.">
<field name="TEXT">Panic</field>
</block>
</value>
</block>
</statement>
</block>
</xml>