Ilogic If conditions false

Ilogic If conditions false

kpk7VYPK
Enthusiast Enthusiast
250 Views
2 Replies
Message 1 of 3

Ilogic If conditions false

kpk7VYPK
Enthusiast
Enthusiast

Hi I am new to ilogic and i am trying to figure out how to get the part number iproperty to be blank if none of the conditions are true. This is what i have so far:

 

'ø80

If InnerDiameter = 80 mm    And thk = 0.75 mm  And L = 500 mm  Then
	iProperties.Value("Project", "Part Number") = "130001820003"
	
	ElseIf thk = 1 mm And L = 1000 mm Then
	iProperties.Value("Project", "Part Number") = "130001820002"
	
	ElseIf thk = 0.75 mm And L = 2000 mm Then
	iProperties.Value("Project", "Part Number") = "130001820001"
	

End If

'ø100

If InnerDiameter = 100 mm     And thk = 0.75 mm   And L = 500 mm   Then
	iProperties.Value("Project", "Part Number") = "130001820006"
	
	ElseIf thk = 0.75 mm And L = 1000 mm Then
	iProperties.Value("Project", "Part Number") = "130001820005"
	
	ElseIf thk = 0.75 mm And L = 2000 mm Then
	iProperties.Value("Project", "Part Number") = "130001820004"
	
	ElseIf thk = 1.5 mm And L = 500 mm Then
	iProperties.Value("Project", "Part Number") = "130001810120"
	
	ElseIf thk = 1.5 mm And L = 1000 mm Then
	iProperties.Value("Project", "Part Number") = "130001810121"
	
	ElseIf thk = 1.5 mm And L = 2000 mm Then
	iProperties.Value("Project", "Part Number") = "130001810122"

End If

 

0 Likes
Accepted solutions (1)
251 Views
2 Replies
Replies (2)
Message 2 of 3

JelteDeJong
Mentor
Mentor
Accepted solution

You could make the part number nothing and change it if needed. I guess that will result in what you are looking for.

iProperties.Value("Project", "Part Number") = ""

'ø80
If InnerDiameter = 80 mm    And thk = 0.75 mm  And L = 500 mm  Then
	iProperties.Value("Project", "Part Number") = "130001820003"
	
	ElseIf thk = 1 mm And L = 1000 mm Then
	iProperties.Value("Project", "Part Number") = "130001820002"
	
	ElseIf thk = 0.75 mm And L = 2000 mm Then
	iProperties.Value("Project", "Part Number") = "130001820001"
	
End If

'ø100
If InnerDiameter = 100 mm     And thk = 0.75 mm   And L = 500 mm   Then
	iProperties.Value("Project", "Part Number") = "130001820006"
	
	ElseIf thk = 0.75 mm And L = 1000 mm Then
	iProperties.Value("Project", "Part Number") = "130001820005"
	
	ElseIf thk = 0.75 mm And L = 2000 mm Then
	iProperties.Value("Project", "Part Number") = "130001820004"
	
	ElseIf thk = 1.5 mm And L = 500 mm Then
	iProperties.Value("Project", "Part Number") = "130001810120"
	
	ElseIf thk = 1.5 mm And L = 1000 mm Then
	iProperties.Value("Project", "Part Number") = "130001810121"
	
	ElseIf thk = 1.5 mm And L = 2000 mm Then
	iProperties.Value("Project", "Part Number") = "130001810122"

End If

 to

Jelte de Jong
Did you find this post helpful? Feel free to Like this post.
Did your question get successfully answered? Then click on the ACCEPT SOLUTION button.

EESignature


Blog: hjalte.nl - github.com

0 Likes
Message 3 of 3

kpk7VYPK
Enthusiast
Enthusiast

Of course! thank you.

0 Likes