User:Ugleh Ulrik/LastName

From Second Life Wiki
< User:Ugleh Ulrik
Revision as of 22:12, 19 April 2010 by Ugleh Ulrik (talk | contribs) (Created page with 'Function to get the persons last name only. '''Function''' <lsl> string LastName (key k){ list ln = llParseString2List(llKey2Name(k),[" "],[]); string lastn = llList2String(ln,...')
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to navigation Jump to search

Function to get the persons last name only.


Function <lsl> string LastName (key k){ list ln = llParseString2List(llKey2Name(k),[" "],[]); string lastn = llList2String(ln,1); return lastn; } </lsl>

Example <lsl> string LastName (key k){ list ln = llParseString2List(llKey2Name(k),[" "],[]); string lastn = llList2String(ln,1); return lastn; }

default {

   touch_start(integer total_number)
   {
      llSay(0, LastName(llGetOwner()));
   }

} </lsl>