Check a parameter which isn't always there

Check a parameter which isn't always there

mk92
Collaborator Collaborator
313 Views
1 Reply
Message 1 of 2

Check a parameter which isn't always there

mk92
Collaborator
Collaborator

Hello,

 

i have a problem with my iLogic rule. I have to check a Parameter wich isn't always there. It is created an deleted by another rule.

 

So my code looks likes this:

 

'Use the parameter wich is there or not to set Pos_1

Parameter.Quiet = True
Pos_1 = Parameter("PositionOne_1")

 

' Check if position parameter has changed
If Not Pos_1 = Pos_MemoryEL1 Then
   Mode = 1
End If

 

' Set memory parameter again
Pos_MemoryEL1 = Pos_1

 

So my problem is that the rule dont react to parameter changes when i use the first two lines

 

Parameter.Quiet = True
Pos_1 = Parameter("PositionOne_1")

 

Is there a better solution to check a parameter wich could be there or not?

 

0 Likes
314 Views
1 Reply
Reply (1)
Message 2 of 2

mk92
Collaborator
Collaborator

Any idea how to solve my problem? Or any questions about the problem?

0 Likes