User:Richardjrn Weatherwax
Revision as of 05:06, 21 November 2012 by Richardjrn Weatherwax (talk | contribs) (Created page with "==Description== A way to find a partial match in a list with a string (because there wasn't another one on this wiki at the time of writing) ==Code== <lsl> //Made by Richardjrn …")
Description
A way to find a partial match in a list with a string (because there wasn't another one on this wiki at the time of writing)
Code
<lsl> //Made by Richardjrn Weatherwax string PartMatchStrInList(string search, list src) {
integer kill = FALSE; integer i; for(i=0;i<llGetListLength(src);i++) { string match = llList2String(src,i); if(llSubStringIndex(match,search)!=-1)return match; } return "NoThInG_FoUnD";
} </lsl>