count controlled loop`
for
condition controlled loop
while
MOD
returns the remainder
DIV
returns whole number
casting
convert 1 data type to another
string casting
str
integer casting
int
real casting
real()
boolean casting
bool()
float casting
float()
how to count characters in string
.length
variable = “hi”
variable.length -> 2
how to extract characters from a string
.substring(x,y)
x=start
y=amount of numbers
variable = “hello”
variable.substring(2,3) -> ell
how to extract characters from left
.left(x)
x=amount of numbers
variable.left(2)
how to extract characters from right
.right(x)
x=amount
variable.right(2)
how to convert a string to uppercase
variable.upper
how to convert a string to lowercase
variable.lower
how find ascii value of a character
ASC(“x”)
x being a letter
how find character value of an ascii value
CHR(x)
x being a number
how to open file
variable = open(“text.txt”)
how to read a line
data = variable.readLine()
how to write a line
variable.writeLine(“new line added”)
variable.endOfFile()
returns true if final line of variable has been reached
how to close a file
variable.close
how to create a text file
newFile(“text.txt”)