I was looking for this on forum but i can’t find anything. Maybe i type bad keywords, than just indicate other thread that consist my problem. I’m creating script that names equipment by coodrinates. I sort equipment coordinates in two ways: by “X” location and by “Y” location. I added also datashapes node where i can choose in which way my elements will be named. So the result of this choose is string “X” or “Y”.
Now how to determine by this two strings which way of script wil be execute? I was thinking about if else condtion, but i dont know how to do it really, and where put something to connect it. I think about two possibility places for any node or my own code.
- After sort by coordinates and preparing names list i join this list to value input in “Element.SetParameterByName” node. If there will be a condition that determine execute between list and this node it would works.
- I can place a code also before seperation for two ways of sort (by"x" and b “y”)
Or maybe there is much better solution that i am thinking about. Please help me