Trying to make if statement with multiple conditions

Trying to make if statement with multiple conditions

David_G_Rodriguez
Enthusiast Enthusiast
632 Views
3 Replies
Message 1 of 4

Trying to make if statement with multiple conditions

David_G_Rodriguez
Enthusiast
Enthusiast

I am trying to make an if statement check multiple conditions but I am getting errors in my iLogic code. I've looked online and it seems like I am writing it correctly, but I keep getting errors. Can anyone help me fix what I am doing wrong?

 

See below:

 

If finished_end_options = "Left" And edgeband_options = "None" Then

Feature.IsActive("Side Right FE Extrusion") = False
Feature.IsActive("Side Left FE Extrusion") = True
Feature.IsActive("Side Left FE Trim") = True
Feature.IsActive("Side Right FE Trim") = False
Feature.IsActive("Left Side Holes") = False
left_back_ph_fe = dado_depth + side_rabbet_depth / 2
Feature.IsActive("Right Side Holes") = True
right_back_ph_fe = cm_thk / 2

If finished_end_options = "Left" And edgeband_options = "All" Or "Sides Only" Then

Feature.IsActive("Side Right FE Extrusion") = False
Feature.IsActive("Side Left FE Extrusion") = True
Feature.IsActive("Side Left FE Trim") = True
Feature.IsActive("Side Right FE Trim") = False
Feature.IsActive("Left Side Holes") = False
left_back_ph_fe = dado_depth + side_rabbet_depth / 2
Feature.IsActive("Right Side Holes") = True
right_back_ph_fe = cm_thk / 2

 

I am going to make another feature active depending on the result.

 

Thanks in advance for any  input.

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

David_G_Rodriguez
Enthusiast
Enthusiast

I fixed line 12 to begin with ElseIf, but I am still getting an error.

 

I am getting "Conversion from string "Sides Only" to type 'Boolean' is not valid"

 

am I using the 'or' operator incorrectly?

 

0 Likes
Message 4 of 4

David_G_Rodriguez
Enthusiast
Enthusiast

I got it to work, thank you.

 

If finished_end_options = "Left" And edgeband_options = "None" Then

Feature.IsActive("Side Right FE Extrusion") = False
Feature.IsActive("Side Left FE Extrusion") = True
Feature.IsActive("Side Left FE Trim") = True
Feature.IsActive("Side Right FE Trim") = False
Feature.IsActive("Left Side Holes") = False
left_back_ph_fe = dado_depth + side_rabbet_depth / 2
Feature.IsActive("Right Side Holes") = True
right_back_ph_fe = cm_thk / 2

ElseIf finished_end_options = "Left" And edgeband_options = "All" Or edgeband_options = "Sides Only" Then

Feature.IsActive("Side Right FE Extrusion") = False
Feature.IsActive("Side Left FE Extrusion") = True
Feature.IsActive("Side Left FE Trim") = True
Feature.IsActive("Side Right FE Trim") = False
Feature.IsActive("Left Side Holes") = False
left_back_ph_fe = dado_depth + side_rabbet_depth / 2
Feature.IsActive("Right Side Holes") = True
right_back_ph_fe = cm_thk / 2
0 Likes