Difference between revisions of "Print"

From Second Life Wiki
Jump to navigation Jump to search
(Undo revision 879642 by ANSI Soderstrom (Talk) Degrades the usability of the article. See my comment on the jira issue.)
m (format glitch)
 
(3 intermediate revisions by 2 users not shown)
Line 6: Line 6:
{{LSL DefineRow|type|value|{{#var:p_value_desc}}}}
{{LSL DefineRow|type|value|{{#var:p_value_desc}}}}
{{!}}}
{{!}}}
}}{{#vardefine:examples|<lsl>//Make the server beep on click
}}{{#vardefine:examples|<source lang="lsl2">//Make the server beep on click
string bell = "%07";
string bell = "%07";


Line 20: Line 20:
     }
     }
}
}
</lsl>
</source>
}}{{#vardefine:notes|This feature of LSL should probably never be used by anyone other then LL.
}}{{#vardefine:notes|* '''print''' is a reserved word, meaning it can't be used for user identifiers.
* This feature of LSL should probably never be used by anyone other than LL.
}}{{#vardefine:caveats|
}}{{#vardefine:caveats|
}}{{#vardefine:helpers|
}}{{#vardefine:helpers|

Latest revision as of 02:45, 6 May 2017

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

print(value);

print(value);
• 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

  • print is a reserved word, meaning it can't be used for user identifiers.
  • This feature of LSL should probably never be used by anyone other than LL.