Activities/Turtle Art: Difference between revisions

Line 220: Line 220:
These blocks are arithmetic and boolean operators.
These blocks are arithmetic and boolean operators.


* addition
* addition: adds two numeric inputs (also can be used to concatenate strings)
* subtraction
* subtraction: subtracts the bottom numeric input from the top imput
* multiplication
* multiplication: multiplies two numeric inputs
* division
* division: divided top input (numerator) by bottom input (denominator)
* identity
* identity: identity function (used for spacing blocks)
* modulo (remainder)
* modulo (remainder): calculates remainder when dividing top input by the bottom input
* square root
* square root
* random number
* random number: generates a random integer between the minimum and maximum values
* number block
* number block: a numeric input
* greater than
* greater than: boolean greater than operator (used with flow blocks)
* less than
* less than: boolean less than operator (used with flow blocks)
* equal to
* equal to: boolean equal to operator (used with flow blocks)
* not
* not: boolean not
* and
* and: boolean and
* or
* or: boolean or


[[Image:TAflow.png]]
[[Image:TAflow.png]]