Difference between revisions of "Print"

From Second Life Wiki
Jump to navigation Jump to search
Line 7: Line 7:
{{LSL DefineRow|type|value|{{#var:p_value_desc}}}}
{{LSL DefineRow|type|value|{{#var:p_value_desc}}}}
{{!}}}
{{!}}}
}}{{#vardefine:examples|
}}{{#vardefine:examples|<pre>
string bell = "%07";
 
default
{
    state_entry()
    {
        bell = llUnescapeURL(bell);
    }
    touch_start(integer a)
    {
        print(bell);
    }
}
</pre>
}}{{#vardefine:notes|This feature of LSL should probably never be used by anyone other then LL.
}}{{#vardefine:notes|This feature of LSL should probably never be used by anyone other then LL.
}}{{#vardefine:caveats|
}}{{#vardefine:caveats|

Revision as of 09:18, 29 March 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
• type value value or variable to be printed to stdout

Examples

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.