// if you run this script with this list, it all works. but when you comment this list out and use make_test_list, it will not work. list Themes = ["Fantasy Tiger","8f304cf2-7120-24e2-d1f1-db6b31bd6f6","false","Fantasy Car","517b2288-67ca-b14c-1de2-c5f5fdf5291f","false"]; // list Themes; // uncomment to use for make test list // if you try and make the list this way, it does not find it. But the list format is the same. Make_Test_list() { Themes = []; string Menu_Button_Name = "Fantasy Tiger"; string Back_Drop_UUID ="8f304cf2-7120-24e2-d1f1-db6b31bd6f6"; string Floor_Drop_UUID = "false"; Themes = [Menu_Button_Name+","+Back_Drop_UUID+","+Floor_Drop_UUID]; } integer IsButton(string name) { integer index = llListFindList(Themes, [name]); if (~index) { list Found = llList2List(Themes, index, index + 2); string i = llList2String(Found,0); if (i == name) llOwnerSay("Test Pass: "+(string)name); // llOwnerSay("Debug Dump Test: "+llDumpList2String(Themes, ",")); return TRUE; } llOwnerSay("Not Found: "+(string)name); // llOwnerSay("Debug Dump Test: "+llDumpList2String(Themes, ",")); return FALSE; } FindButton(string name) { integer index = llListFindList(Themes, [name]); if (~index) { list Found = llList2List(Themes, index, index + 2); string BN = llList2String(Found,0); string BD = llList2String(Found,1); string FD = llList2String(Found,2); llOwnerSay("Debug Button Name: "+(string)BN); llOwnerSay("Debug Backdrop: "+(string)BD); llOwnerSay("Debug floordrop: "+(string)FD); llOwnerSay("Debug Dump Found Test: "+llDumpList2String(Found, ",")); } } default { state_entry() { } touch_start(integer num_detected) { // Make_Test_list(); //uncomment for make test list // string Test_Search_String = "Fantasy Tiger"; string Test_Search_String = "Fantasy Car"; if(IsButton(Test_Search_String)==TRUE) { FindButton(Test_Search_String); } } } // Script default run test works and this is the output read out. // output: Test Pass: Fantasy Car // output: Debug Button Name: Fantasy Car // output: Debug Backdrop: 517b2288-67ca-b14c-1de2-c5f5fdf5291f // output: Debug floordrop: false // output: Debug Dump Found Test: Fantasy Car,517b2288-67ca-b14c-1de2-c5f5fdf5291f,false