01-24-2020
08:33 AM
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report
01-24-2020
08:33 AM
I don't think that will work, because the values of the iProperties will be Strings, and iLogic doesn't implicitly convert strings to boolean. You could change the other rules to make the values of your iProperties either "True" or "False", or you could use the below code to evaluate the current values:
If LCase(iProperties.Value("Custom", "Width Configured?")) = "no" Or _
LCase(iProperties.Value("Custom", "Honeycomb Configured?")) = "no" Or _
LCase(iProperties.Value("Custom", "Inner Rail 1 Configured?")) = "no" Or _
LCase(iProperties.Value("Custom", "Inner Rail 2 Configured?")) = "no" Then
iLogicVb.RunRule("Width Check")
iLogicVb.RunRule("Panel Length - No Rails")
Else
MessageBox.Show("Part is properly configured. No changes needed.", "Limit Check")
End If