I'm running one rule with few rules inside but i need one rule in certain situation to skip. It would be the best to be as boolean param. yes to run that rule and no to skip and to go on next rule until is done.
Can you guys help
Thank you
Solved! Go to Solution.
Solved by GosponZ. Go to Solution.
Solved by Vladimir.Ananyev. Go to Solution.
If you add boolean user parameter e.g. NeedRule to your model, then the following rule could call the dependent rule "ruleName" only if NeedRule = True
If NeedRule Then iLogicVb.RunRule("ruleName") End If
Great!
This rule came from Vladimir Ananyjev
It is working very well. Thank you
MsgBox("Start of Main Rule") 'Run rule 1 iLogicVb.RunRule("Rule1") 'Run rule 2 iLogicVb.RunRule("Rule2") R = MessageBox.Show("Do you want to run Rule3 ?", _ "Ask user for decision", _ MessageBoxButtons.YesNo, _ MessageBoxIcon.Question) If R = vbYes Then 'Run rule 3 iLogicVb.RunRule("Rule3") Else MsgBox("Skip Rule3") End If