01-23-2020
05:19 AM
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report
01-23-2020
05:19 AM
Do Loop to check multiple values and return a single result...maybe
Through a series of rules, I am creating iProperties to show whether a certain condition exists or not. Each of these properties will either end with a value of "Yes" or "No".
iProperties.Value("Custom", "Width Configured?")
iProperties.Value("Custom", "Honeycomb Configured?")
iProperties.Value("Custom", "Inner Rail 1 Configured?")
iProperties.Value("Custom", "Inner Rail 2 Configured?")I would like to create a rule to check the values of these 4 properties and perform one of two operations given the values of those properties.
If any one of the 4 iproperties = "No" Then
iLogicVb.RunRule("Width Check")
iLogicVb.RunRule("Panel Length - No Rails")
ElseIf ALL 4 properites = "Yes" Then
'MessageBox.Show("Part is properly configured. No changes needed.", "Limit Check")
End IfI assume I need to run a Do Loop to check the values of the properties and return one of the two outcomes I have shown above. If so, I don't know how to write the code. If there is another way, which way is it?