Support Forums

Full Version: TI-BASIC Reference
You're currently viewing a stripped down version of our content. View the full version with proper formatting.
TIBASIC Reference
Code:
CONTENTS
    . Lbl
    . Disp
    . Pause
    . ClrHome
    . Goto
    . Input
    . ->
    . Output
    . If
    . Then
    . Else
    . Operations
    . Tests

    
Lbl
    Creates a label
        Example:
        Lbl 1
                
Disp
    Prints text
        Example:
        Disp "Hello World!"

Pause
    Waits for the user to press enter
        Example:
        Pause

ClrHome
    Clears the screen
        Example:
        ClrHome

Menu()
    Creates a Menu
        Exmaple:
        Menu("Name of menu","Option 1",1,"Option 2",2,"Option 3",3)

Goto
    Goto a label
        Example:
        Goto 1

Input
    Takes input
        Example:
        Input "Input Something: ",A

->
    Stores something to a variable
        Example:
        4->A

Output()
    Prints text is a specific place
        Example:
        Output(1,1,"Hello World")
            Explanation:
            Output(Y,X,"Text")
            Y Being the distance up and down
            X Being the distance left and right

If
    Loops
        Example:
        If A=1
        Disp "Hello"

Then
    Follows If
        Example
        If A=1
        Then
        Disp "Hello"

Else
    Goes along with if, it's like saying if not
        Example:
        If A=1
        Then
        Disp "Hello"
        Else
        Disp "Bye"
        
Operations
    Addition    | +
    Subtraction | -
    Multiply    | *
    Divide      | /

Tests
    Equal To           | =
    Not Equal To     | ≠
    Greater Than     | >
    Less Than        | <
    Greater or Equal | ≥
    Less or Equal To | ≤
NOTE: This is just starting out, I will be adding more functions as I go on.
Some of the formatting wasn't preserved when I pasted this. I put it in the code tags to get it the best I can.