|
Mobius Hashimoto
Registered User
Join date: 18 Aug 2006
Posts: 146
|
10-03-2006 20:17
Hi, i have a script that compares a string from a list to some other string first: String1 we call it "String A" second: String2 we call it "String A" and is in a list
when i do if (String1==llList2String(list, i)) {} i get false how come? the strings are clearly the same
can someone help? this is killing me!!!
Thanks Mobius
_____________________
Project Mobius - Web/Graphic Design and Tech Reviews  Please check out my items @  Blog about games, gadgets & technologies @ 
|
|
Jillian Callahan
Rotary-winged Neko Girl
Join date: 24 Jun 2004
Posts: 3,766
|
10-03-2006 20:39
Make sure they're the same. Have the script tell you the values before the conditional: llOwnerSay("String1 = \"" + String1 + "\""); llOwnerSay("llList2String(list, i) = \"" + + "\""); if (String1==llList2String(list, i)) {} The escaped quotes are great for detecting accidental whitespace.
|
|
Mobius Hashimoto
Registered User
Join date: 18 Aug 2006
Posts: 146
|
10-03-2006 20:51
Hi, thanks
but let's say the string in the list is of a name say "Mobius Hashimoto" and a string with "Mobius Hashimoto" for some reason i'm still getting not equal -_-" and i did do llownersay to check the string in the list
_____________________
Project Mobius - Web/Graphic Design and Tech Reviews  Please check out my items @  Blog about games, gadgets & technologies @ 
|
|
Mobius Hashimoto
Registered User
Join date: 18 Aug 2006
Posts: 146
|
10-03-2006 20:54
oh crap...there was an extra white space in front of the string in the list , i substringed it too early.
Thanks Jillian!
_____________________
Project Mobius - Web/Graphic Design and Tech Reviews  Please check out my items @  Blog about games, gadgets & technologies @ 
|
|
Jesse Barnett
500,000 scoville units
Join date: 21 May 2006
Posts: 4,160
|
10-03-2006 22:07
heehee Yep white space caught me the other night. Wasted about 30 minutes debuggin before I found it.
_____________________
I (who is a she not a he) reserve the right to exercise selective comprehension of the OP's question at anytime. From: someone I am still around, just no longer here. See you across the aisle. Hope LL burns in hell for archiving this forum
|