LEN()

From Liberty BASIC Family
Jump to navigation Jump to search
Supported in Just BASIC Supported in Liberty BASIC Not supported in Liberty BASIC 5 Not supported in Run BASIC

Description

Returns the length in characters of a string.

Syntax

  1. len(string)

Hints

Place useful hints about this keyword here

Example

' A potential game routine
    youAt = 0
    wallAt = 10
    youShout$ = "Get ready"

    moveForward = len(youShout$)
    if moveForward > wallAt then
        print "Sorry. You bumped into the wall."
    else
        print "You are "; wallAt-moveForward; " steps from the wall."
    end if

    wait

Useful Procedures

' Place a useful function or sub using this keyword here