Documentation

Generic BASIC Keyword List

Comparison

  • AND - logical and comparison operator
  • OR

Conversion

Convert one thing to another.

  • ASC() - convert a letter to it's ASCII number
  • CHR$() - convert a number to an ASCII character.
  • STR$ - convert a number to a string.
  • VAL - convert a string to a number.

Math

Get the computer to do math for you.

Conditional Statements

Conditional statements allows your game to run different blocks of code based on what is happening at the time.

  • IF - make a decision
  • ELSE - if first you don't succeed.
  • THEN - the friend of IF

Loops

Input and Output

  • CLS - clear the screen.
  • DATA - put data in your program
  • INKEY$ - check if a key has been pressed.
  • INPUT - get a line of input from the player.
  • PRINT - display something on the screen or in a window.
  • READ - get data from DATA.
  • WRITE - the evil twin brother of PRINT

File Handling

  • CLOSE - close an open file.
  • OPEN - open a file for access

String Handling

Outdated BASIC

page_revision: 4, last_edited: 1207845740|%e %b %Y, %H:%M %Z (%O ago)