Difference between revisions of "User:Thraxis Epsilon/LSL Portal LSL Portal"

From Second Life Wiki
Jump to navigation Jump to search
 
Line 2: Line 2:
__NOEDITSECTION__
__NOEDITSECTION__
== Welcome to the Second Life LSL Portal! ==
== Welcome to the Second Life LSL Portal! ==
{| width="100%"
|-
|valign="top"|
<div id="box">
<div style="padding: 0.5em">
Returns the absolute value of the integer passed to it.
</div>
</div>
|-
|<div id="box">
== [[integer]] llAbs( [[integer]] number); ==
<div style="padding: 0.5em">
This function returns the absolute value passed to it. Basically, it removes the negative sign, on the number if there is one. If the parameter is a positive one, it just returns it
</div>
</div>
|valign="top" width="50%"|
|-
|
<div id="box">
== number ==
<div style="padding: 0.5em">
Any valid integer that you wish to find the absolute value of
</div>
</div>
|-
|
<div id="box">
== Examples ==
<div style="padding: 0.5em">
<lsl>
default
{
    state_entry()
    {
        llSay(0,"The absolute value of -4 is: "+(string)llAbs(-4) );
    }
}
</lsl>
</div>
</div>
|-
|
<div id="box">
== Caveats ==
<div style="padding: 0.5em">
* None at this time
</div>
</div>
|}




Line 10: Line 63:
== Getting Started==
== Getting Started==
<div style="padding: 0.5em">
<div style="padding: 0.5em">
* [[:Category:LSL Tutorial|Tutorials]]
* [[LSL Tutorial|Tutorials]]
* [[:Category:LSL Mentor|Scripting Mentors]]
* [[LSL Mentor|Scripting Mentors]]
* [[:Category:LSL Teacher|Scripting Teachers]]
* [[LSL Teacher|Scripting Teachers]]
</div>
</div>
</div>
</div>
Line 27: Line 80:
== LSL Language Refrence ==
== LSL Language Refrence ==
<div style="padding: 0.5em">
<div style="padding: 0.5em">
* [[LSL Constants|Constants]]
* [[:Category:LSL Constants|Constants]]
* [[LSL Events|Events]]
* [[:Category:LSL Events|Events]]
* [[LSL Flow Cont|Flow Control]]
* [[LSL Flow Cont|Flow Control]]
* [[:Category:LSL Functions|Functions]]
* [[LSL Operators|Operators]]
* [[LSL Operators|Operators]]
* [[LSL States|States]]
* [[LSL States|States]]

Revision as of 17:46, 24 January 2007


Welcome to the Second Life LSL Portal!

Returns the absolute value of the integer passed to it.

integer llAbs( integer number);

This function returns the absolute value passed to it. Basically, it removes the negative sign, on the number if there is one. If the parameter is a positive one, it just returns it

number

Any valid integer that you wish to find the absolute value of

Examples

<lsl> default {

   state_entry()
   {
       llSay(0,"The absolute value of -4 is: "+(string)llAbs(-4) );
   }

} </lsl>

Caveats

  • None at this time


Links to Helpful Resources