ilogic menu

ilogic menu

Anonymous
Not applicable
388 Views
2 Replies
Message 1 of 3

ilogic menu

Anonymous
Not applicable

I'm playing with iLogic and thought as simple making a rule. I have a hole in a large panel which I want to send through a menu. For each code is a different diameter. If I change the parameter then  the hole stays the same. Do I missing something?

If sparing = DN100 Then

maat_ØH = 122

ElseIf sparing = DN125 Then

maat_ØH = 152

ElseIf sparing = DN160 Then

maat_ØH = 194

End If

0 Likes
389 Views
2 Replies
Replies (2)
Message 2 of 3

Mike.Wohletz
Collaborator
Collaborator

The problem with what you have is that you are wanting to check a string value and yet your actually declaring a variable since it is not in parentheses, see below corrected code.

 

If sparing = "DN100" Then
maat_ØH = 122
ElseIf sparing = "DN125" Then
maat_ØH = 152
ElseIf sparing = "DN160" Then
maat_ØH = 194
End If

 

0 Likes
Message 3 of 3

Anonymous
Not applicable

Mike,

Thanks, its the litle things who make the solution.

0 Likes