Syntax

integer llStringLength( string str );

Forced delay: 0.0 seconds. Energy: 10.0.

Parameters

string str

Return value

Returns an integer that is the number of characters in str.

Caveats

Examples

// assumptions: 
//    object name: LSLWiki
//    script name: _lslwiki

default
{
    state_entry()
    {
        string HowLongAmI = "123";
        integer strlen = llStringLength(HowLongAmI);
        llOwnerSay( "'" + HowLongAmI + "' has " +(string) strlen + " characters.");
        // The owner of object LSLWiki will hear 
        // LSLWiki: '123' has 3 characters.
    }
}

See also

Functions