I’m having an issue working with lists. I’m trying to replace a value given an index. However I’m not sure why, but it doesn’t seem to be behaving like I expected. I’ve tried changing the lacing to no avail. I’ve attached some snaps of the definition, the definition file and the Revit file.
I would appreciate whether you think this is a good way of solving the problem as well, I’ve seen lot’s of topics to do with list logic in this field and I could do with knowing a good way of solving this. Some of the posts I’ve been looking at today are as follows.
So if I understand correctly, wherever you see a 3 for instance in your list flatten that you tie into “index” you want it to return a “nah m8” or some value you specify correct?
Tell me if I am understanding this right:
The list of parameter values at the top, you want it changed to either 13, 5, 9, or “nah m8” based on the flattened list in the same index?
If that is true, is there any need for using the parameter value list as an input? Can’t you just replace what is in the flatten list with the 13, 5, 9, etc and use that instead? Isn’t it the same thing?