"expecting a list" means that they only accept lists, but you specify something other than that.
If "Possible Move Indexes" isn't supposed to be a list then maybe you'd want to use the library text contains block instead
I guess you (@mtrout_27) do want to be a list.
Apparently it is a number though.
Perhaps the variable wasn’t initialized as a list () - after creation a variable’s value is always 0, so a number.
What you could do to further research the issue is insert the following blocks immediately before the contains
block:
This will stop execution, display the value of the variable, and probably run into the same error, but now at least you know what the value was, which may help you find the root cause of the problem. And / or you could walk through the code being executed in Step Mode. See the Reference Manual, section 1F.
This topic was automatically closed 30 days after the last reply. New replies are no longer allowed.