Hi all,
I have an iLogic rule which changes the value of the parameter and then triggers another rule to be run. It simply looks like this...
Parameter="Value"
iLogicVb.RunRule("MyRule")
The problem is that there are functions in the rule which are dependant on the Value of the parameter and at present, the rule seems to run with the old value of the parameter. Is there anyway to fix this such as adding an update between the two lines of code???...
Parameter="Value"
Update
iLogicVb.RunRule("MyRule")
Solved! Go to Solution.
Solved by waynehelley. Go to Solution.
If parameter = "value" Then
iLogicVb.RunRule("MyRule")
Else 'do nothing
End If
Would that not work?
I just tried having my parameter at a random value which was '2'
Ran the following...
Coordinate_Place=1
If Coordinate_Place=1
iLogicVb.RunRule("Coordinate Place")
Else
End If
and the rule still ran with the parameter at a Value of 2
I just noticed there is a function 'RunRule (with map)' which can pass an argument from one rule to another. Maybe this is what I need to use??
Solved it...
If you alter the parameter using the format...
parameter("d0") = 1.2
It happens dynamically and the parameter is altered immediately
Hi Wayne,
Alternatively, you can use this line to output (update) the parameters at any point in a rule I believe
Luke
RuleParametersOutput()