- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report
I'm fairly new to ilogic so please bare with me on this.
I need code that will look at 2 parameters from a specific component in my assembly and test to see if they match a condition, and do that for each model state in that component. If it finds a match it should then change the component to that model state. If it doesn't find a match, it should display a message.
Now, I know I could keep changing the model state of the component then check the parameters until it does or doesn't match, but it takes a while to change the model state of this component and there's a lot of them, so I don't want to do it that way if I don't have to.
But either way, I don't know how to deal with model states without having to specify the name of the model states, which is what I want to avoid since there will be more model states added later I don't want to have to modify my code every time to include the new ones.
Any help is appreciated.
Solved! Go to Solution.