Single Revit model for all services model. Trying to build script inserting views onto relevant sheets using xls to input views. Need help at this point. when i’m trying to get the index value of these list of views it’s returning -1 value. Script screenshot attached . TIA.
The == node you’ve used will compare by index. It will go down each list and compare the items in index 0, returning true or false, then index 2,3…etc. So if your ‘MECH PLAN 3’ isn’t in the same index in both lists it will always return false.
If you want to look for a match anywhere in the list, you’d need to use a map function or cross product lacing, then either a List.Contains true, or a node like AnyTrue from Clockwork. You could then use List.AllIndicesOf to get those indices, but that’s a really long way around just using the List.IndexOf node.