term1 Definition1term2 Definition2term3 Definition3
Please sign in to your Google account to access your documents:
Text Window
The window where you write your code and your code is displayed
Variable
Used to store a value that will change eg name, height etc. There are rules for naming eg you can't use key words like if or symbols like +
Write
Allows you to write some text but does not start a new line
Textwindow.Write(“Hello,”)
Textwindow.Write(“World”)
WriteLine
Allows you to write a line of text into the window and starts on a new line
Textwindow.Writeline(“Hello, World”)
Read
Allows you to use a user input in your coding
TextWindow.Write("What's your name : ")
Name = TextWindow.Read()
TextWindow.WriteLine("Hello " + name + ".")
Pause
Stops the program and displays the message ‘press any key to continue’ and then waitsuntil the user presses a key
Textwindow.Pause()
Clear
Clears the contents of the text window and resets it to a black background
Textwindow.Clear()
Title
Changes the title of the textwindow
Textwindow.Title = “SmallBasic is great!”
If and ElseIf
This functions allows a specific response to a user input variable
If answer = Paris then
TextWindow.WriteLine ("Well done!")
ElseIf
TextWindow.WriteLine ("Incorrect!")
Need help typing ? See our FAQ (opens in new window)
Please sign in to create this set. We'll bring you back here when you are done.
Discard Changes Sign in
Please sign in to add to folders.
Sign in
Don't have an account? Sign Up »
You have created 2 folders. Please upgrade to Cram Premium to create hundreds of folders!