Type your ugBASIC program here (remember: keywords like PRINT must be UPPERCASE!).
Click on Build menu to select the target: you will download the compiled binary file!

CLS DO COLOR BORDER YELLOW HOME: PRINT "YELLOW" WAIT 500 MS COLOR BORDER BLACK HOME: PRINT "BLACK " WAIT 500 MS DO COLOR BORDER RED HOME: PRINT "RED " WAIT 1000 MS COLOR BORDER GREEN HOME: PRINT "GREEN " WAIT 1000 MS DO COLOR BORDER RED HOME: PRINT "RED " WAIT 1000 MS EXIT 2 : REM EXIT 2 = skip 1 more loop, because "EXIT" == "EXIT 1"! REM The border will never be green, REM and the secondo loop will be skiped COLOR BORDER GREEN HOME: PRINT "GREEN " WAIT 1000 MS LOOP LOOP LOOP

Welcome to the ugBASIC sandbox!

This tool was designed to quickly test whether the code you are writing compiles correctly and determines the desired results. Since the source is compiled thanks to dedicated servers, separate from the browser you are using, some commands are not available: for example, you cannot load external files or resources by using the LOAD command. If you need to develop a program with a complete tool, we recommend installing the executables or the UGBASIC-IDE.

Unless required by applicable law or agreed to in writing, this website is given on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for the specific language governing permissions and limitations under the License.