--
You received this message because you are subscribed to the Google Groups "Blockly" group.
To unsubscribe from this group and stop receiving emails from it, send an email to blockly+u...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.
Blockly is not equating 0 to true. The statement "is divisible by" is equivalent to "x % y == 0" since it's checking for divisibility and returning true if it is divisible.
If you tried to plug just 0 in to a boolean it wouldn't work, because Blockly is somewhat typed.
You received this message because you are subscribed to a topic in the Google Groups "Blockly" group.
To unsubscribe from this topic, visit https://groups.google.com/d/topic/blockly/CoJBUyXVb6A/unsubscribe.
To unsubscribe from this group and all its topics, send an email to blockly+u...@googlegroups.com.
so are you saying that it would be nice to replace a condition test with a numeric equation would be a good idea
BUT is a ZERO value the same as a TRUE in the IF statementmost machine languages use ZERO as a FALSE result but i quess JAVASCRIPT ( BLOCKLY ) can behave differently but i have not seen any SYNTAX rules for them .... can anyone verify this as i have always assumed them to follow normal computer rules ...
sorry i still not sure you are talking the same logic
i see it that mehmet sinoplu is saying
IF ( x%7 ) then print A
which
means that x must be divided by 7 evenly which results in a 0 value
which to me means that a numeric expression evaluated to ZERO is a TRUE
statement
if this is wrongly stated then please have some one create a BLOCKLY image of how you want the IF BLOCK should look like
i wish more visual BLOCKLY was used instead of JAVASCRIPT code when talking about BLOCKLY
i think this is what you are need make: