Scratch Language Commands
As Scratch is a GUI based programming language, here is the key for the symbol usage in the lists:
-
<=> - Hexagonal Box, requiring that one of the following pieces be entered:
-
<()<()> - Returns true if Number 1 is less than Number 2
-
<()=()> - Returns true if Number 1 is equal to Number 2
-
<()>()> - Returns true if Number 1 is greater than Number 2
-
<<=>and<=>> - Returns true if Statement 1 AND Statement 2 both return true
-
<<=>or<=>> - Returns true only if Statement 1 OR Statement 2 returns true
-
> - Returns true if Statement returns false, and vice versa
-
() - Circular/Oval Box, requiring that one of the following pieces be entered:
-
4 - Any number
-
(Num) - Any variable
-
(pick random () to () ) - Self explanatory
-
(join [=]|[=]) - Joins two Strings
-
(letter()of[=]) - Returns character number () of string [=]
-
(length of[=]) - Gets the length of the string
-
(()mod()) - Gets the AbsoluteValue of Num1-Num2
-
(round()) - Rounds the number to the nearest integer
-
([list v] of ()) - Does the task specified to the number given.
-
abs - AbsoluteValue
-
sqrt - SquareRoot
-
sin - the Sine of a number
-
cos - the Cosine of a number
-
tan - the Tangent of a number
-
asin - the Arcsine of a number
-
acos - the Arccosine of a number
-
atan - the Arctangent of a number
-
ln - HelpMe
-
log - HelpMe
-
e ^ - e to the power of...
-
10 ^ - number of zeros you wish to shove on the end of 1
The commands used in the ProgrammingLanguage Scratch (ScratchLanguage) are as follows:
Scratch 1.4
Scratch - If <=>
JavaScript - If (...){...}
SmallBasic - If ... Then
Scratch - Else
JavaScript - Else {...}
SmallBasic - Else
Scratch - When Clicked
JavaScript - OR End of code
SmallBasic - Program.End()
Scratch - Stop script
JavaScript - N/A
Small Basic - N/A
Scratch - Repeat ()