i am using the " if " operator to search chat text for a key word and cause an event to happen. The problem is, it will only work if that is the first and only word. I want it to find the key word anywhere in chat. I am using the followin statement where xxx is my key word: listen(integer channel, string name, key id, string message) { if (message == "XXXXXXX") { im new to this and cant get the syntax right. im using this: // Note: copy in object to rez default { state_entry() { llListen(0,"", NULL_KEY, ""); } listen(integer channel, string name, key id, string message) { integer index = llSubStringIndex("string data","XXXXX"); if(index == -1) { // This line will pick the first object out of the container and rez it llRezObject(llGetInventoryName(INVENTORY_OBJECT,0), llGetPos()+<0,0,.2>,ZERO_VECTOR,ZERO_ROTATION,0); } else { llSay(PUBLIC_CHANNEL,"XXXXX was not found in the string."); } } } and it rezes an item no mater what is said in chat