Announcements
Attention for Customers without Multi-Factor Authentication or Single Sign-On - OTP Verification rolls out April 2025. Read all about it here.
anoor
in reply to: Curtis_Waguespack

This is the code I created. It's just a simple If/Then statement:

SyntaxEditor Code Snippet

If Plate_Diameter = 4 ft  Then
Parameter("Dia") = "4'-0"""
Parameter("THK") = "1/2"""
Cutout_Length = 18 in
Cutout_QTY = 14 ul

Else If Plate_Diameter = 6 ft  Then
Parameter("Dia") = "6'-0"""
Parameter("THK") = "1/2"""
Cutout_Length = 30 in
Cutout_QTY = 14 ul

Else If Plate_Diameter = 8 ft  Then
Parameter("Dia") = "8'-0"""
Parameter("THK") = "1/2"""
Cutout_Length = 36 in
Cutout_QTY = 14 ul

End If

I don't use iLogic much, but I have written this type of code hundreds of times and I've not had any issues with it until now.