Documentation
If you want to know what a certain block does you've come to the right place.
All the blocks that can interact with your browser.
Shows a popup box that says message
.
Shows a popup box that asks message
and returns true
if the user clicked Ok
or false
if the user clicked Cancel
.
Shows a popup box that asks message
and returns what the user entered.
Show a popup box that prompts the user to copy text
.
Shows a popup box that asks message
and has value
already entered into it. Then, returns what the user entered.
Sets the tab's name to name
.
Returns the tab's name.
Run JavaScript in Scratch!
Loads a Scratch extension from URL
.
Runs script
as JavaScript.
Sends a request of type GET
, POST
, PUT
, or DELETE
to the url url
along with optional data data
. Then returns the result (if any). make sure that if data
is included that it is a Scratch Boost Object.
Save stuff to the user's browser.
Makes and saves a local variable named variable
on the user's computer.
Loads the local variable named variable
.
Saves the local variable named variable
with a value of value
.
Deletes the local variable named variable
.
All the blocks I couldn't find a place for.
Returns true
if bool
is true or false
.
Returns whether x
is not equal to y
, x
is less than or equal to y
, or x
is greater than or equal to y
.
Returns a color based on the red
, green
, and blue
values.
Returns true
unless Scratch Boost isn't installed
This is an inline comment.
Executed every time bool
switches from being false
to true
Returns 1
if bool
is true
and 0
if false
Bringing object oriented programming to Scratch! Note: All Object blocks return a JSON value.
Returns an empty object which looks like {}
. This block can be used inside of variables, lists, local variables, and more.
Returns the property property
of object
as an object.
Returns the property property
of object
as a number or a string.
Returns an object
with the property property
set to value
. value
can be a number, string, boolean, or object.
Interact with more Scratch features with Scratch Boost.
Returns true
if the user has the project's editor open and false
if not.
Switches to the editor view.
Switches to the project page.
Switches between the editor view and the project page.
Returns this project's ID.
Sets the color of either the navbar text or navbar background to a color based on the red
, green
, and blue
values.
Prompts the user if the want to go to one of the following:
- The project page of the project with the ID of
ID
- The profile of the user named
ID
- The studio with the ID
ID
- The discussion topic with the ID
ID
- The results of searching Scratch for
ID
More text tools!
Returns true if substring
can be found in string
.
Returns the first location of substring
in string
.
Returns the letters from string
in the range x
to y
.
Returns true if string
is:
- Any capitalization of the word "true"
- Any capitalization of the word "yes"
- The number
1
Returns how many words are in sentence
. Words are calculated by how many pieces of text with spaces or punctuation there are.
Returns the number of times substring
is in string
even if substring
is within a word.