Announcements
Attention for Customers without Multi-Factor Authentication or Single Sign-On - OTP Verification rolls out April 2025. Read all about it here.
jfenter
412 Views, 5 Replies

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 If

I 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?