I am passing parameters as list to another screen. If I am checking whether "get start value" is a list then I get TRUE. If I check length of "get start value" then again I get correct answer. Even same if I try to copy "get start value" to another list. However, when I try to access the elements then I get a RUNTIME ERROR that, " Select list item: Attempt to get item number 1 of a list of length 0: [] Note: You will not see another error reported for 5 seconds."
Somewhere you are starting your profile screen with less than 1 list element in its start value, and your test (attached) does not catch that before trying to select item 1 (not there.)
Thanks for the response.
First IF is just to copy the passing parameter to another list and see any difference. So that is purely for testing purpose.
In second IF, >= is covered under ELSE case. If the condition is not true then that should go to ELSE case.
Lastly, like I said, if I am trying to print the length of list I am getting it as 2 because I am passing two values in the list and also index 1 is giving me correct value. But I am getting annoyed with the error popping up every time, I reach to this screen.
I have checked the blocks on the screen, and I am not using "get start value" anywhere else. Do you need another part of the code to check?
I tried to disable the IF loops during screen initialization then this error was gone, so it is this block which is creating issue.
If you are going to select item 1, you must guard that test with a test if length of list >= 1.
Read that test as length of list greater than or equal to 1.
The test you had was "less than or equal to 1", which lets through the error case length of list = 0 which does not stop you from selecting item 1 from a list of length 0.