{{stub}}
{{language
|checking=static
|hopl=no
|site=
}}
{{language programming paradigm|object-oriented}}
MelonBasic is a programming language and the name of [https://scratch.mit.edu/projects/2600575/ its official IDE] (which is in the form of a command-line interface) that runs on top of [[Scratch]], originally released on June 10th, 2012 by [[Scratch]] user [https://scratch.mit.edu/users/MelonInc MelonInc].

With each command ending with <code>:</code>, values other than static strings can be declared. These values are declared using one set of speech marks per side, like "this". These values can be used for each command unless otherwise stated:
* <code>var</code> - The only freely changeable variable.
* <code>answer</code> - The last answer given from an <code>Ask:</code> command.
* <code>start</code> - Goes to line 1. This can only be used with <code>Goto:</code>.
* <code>all</code> - Clears all lines of text on the screen. This can only be used with <code>Delete:</code>.

MelonBasic features the following commands:
{| class="wikitable"
!Command
!Description
|-
| style="text-align:center"| <code>Set:</code> || Sets the variable to the specified value.
|-
| style="text-align:center"| <code>Ask:</code> || Asks the user for input.
|-
| style="text-align:center"| <code>Say:</code> || Displays the specified text on the screen.
|-
| style="text-align:center"| <code>Play:</code> || Plays a sound. Two sounds are available: Laser and pop.
|-
| style="text-align:center"| <code>Alert:</code> || Displays a popup for 1.5 seconds. The popup will appear over the title bar on the program execution window.
|-
| style="text-align:center"| <code>Goto:</code> || Goes to the specified line in the program.
|-
| style="text-align:center"| <code>Wait:</code> || Pauses program execution for the specified amount of seconds.
|-
| style="text-align:center"| <code>Delete:</code> || Clears the specified lines of text on the screen.
|-
| style="text-align:center"| <code>End</code> || Ends the program.
|}

[[Category:Language Implementations in Scratch]]
[[Category:Web Application]]