Difference between revisions of "Category talk:LSL List"

From Second Life Wiki
Jump to navigation Jump to search
Line 15: Line 15:


:I'll look into it, this sounds like a bug. Those two expressions should be equivalent. -- [[User:Strife Onizuka|Strife Onizuka]] 18:26, 3 June 2007 (PDT)
:I'll look into it, this sounds like a bug. Those two expressions should be equivalent. -- [[User:Strife Onizuka|Strife Onizuka]] 18:26, 3 June 2007 (PDT)
::I've done some testing and I cannot replicate your problem. Are you aware that indexing starts at zero and not one?  -- [[User:Strife Onizuka|Strife Onizuka]] 15:56, 5 June 2007 (PDT)

Revision as of 15:56, 5 June 2007

I want to document the fact that the following two expressions are NOT the same somehow.

[1] list_var += [(string)key_var]; [2] list_var += (string)key_var;

Why does this matter? why consider the following line of code:

index = llListFindList(list_var, [(string)key_var] );

If method [1] is used before the line above,you will find your value, however if you use method [2], you will not.


After much frustration I wanted to share this in hope someone else will not fall into the pit, or if it is a bug, it can be put in Jira. I'll let one of the Wiki gods decide what to do with this. --Awsoonn Rawley

I'll look into it, this sounds like a bug. Those two expressions should be equivalent. -- Strife Onizuka 18:26, 3 June 2007 (PDT)
I've done some testing and I cannot replicate your problem. Are you aware that indexing starts at zero and not one? -- Strife Onizuka 15:56, 5 June 2007 (PDT)