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 DIM textIndex AS SIGNED BYTE DIM textIndex2 AS SIGNED BYTE textIndex = 0 textIndex2 = 0 EVERY ( TICKS PER SECOND ) TICKS, 0 GOSUB changeText EVERY ( TICKS PER SECOND * 2 ) TICKS, 1 GOSUB changeText2 EVERY ON 0 EVERY ON 1 HALT changeText: LOCATE 0, 3: PRINT "1) Text index #"; textIndex; INC textIndex EVERY ON 0 RETURN changeText2: LOCATE 0,2: PRINT "2) Text index #"; textIndex2 INC textIndex2 EVERY ON 1 RETURN

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.