Difference between revisions of "Print"

From Second Life Wiki
Jump to navigation Jump to search
Line 32: Line 32:
}}{{#vardefine:also_tests|
}}{{#vardefine:also_tests|
}}{{#vardefine:location|
}}{{#vardefine:location|
}}{{LSL Generic}}
}}{{LSL Generic}}{{LSLC|Keywords}}

Revision as of 01:15, 22 April 2007

The correct title of this article is print. The initial letter is shown capitalized due to technical restrictions.

print(value);

print(value);
Returns a variable of the same type as the input parameter (I think this is a bug).
• type value value or variable to be printed to stdout

Examples

//Make the server beep on click
string bell = "%07";

default
{
    state_entry()
    {
        bell = llUnescapeURL(bell);
    }
    touch_start(integer a)
    {
        print(bell);
    }
}

Notes

This feature of LSL should probably never be used by anyone other then LL.