Multiple conditions in statement

Multiple conditions in statement

j.romo
Advocate Advocate
423 Views
2 Replies
Message 1 of 3

Multiple conditions in statement

j.romo
Advocate
Advocate

Maybe This is too basic but I cant figure it out

I have 3 conditions that the drawing needs to meet but cant make my code to work

Any help will be apreciated

 

SyntaxEditor Code Snippet

If TIPO = "PARTES MAQUINADAS" And SIZE = "CARTA" And MARGEN = "CLEAN" Then
ActiveSheet.TitleBlock = "CLEAN PART MT C"
ActiveSheet.Border = "MT ROUND CLEAN"

ElseIf  TIPO = "PARTES MAQUINADAS" And SIZE = "CARTA" And MARGEN = "ZONE" Then
ActiveSheet.TitleBlock = "ZONE PART MT C"
ActiveSheet.Border = "MT ROUND 8 ZONAS"

End If

 

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

chandra.shekar.g
Autodesk Support
Autodesk Support
Accepted solution

@j.room,

 

Try below iLogic code. 

 

If TIPO = "PARTES MAQUINADAS" And SIZE = "CARTA" Then
	If MARGEN = "CLEAN" Then	
ActiveSheet.TitleBlock = "CLEAN PART MT C" ActiveSheet.Border = "MT ROUND CLEAN" ElseIf MARGEN = "ZONE" Then ActiveSheet.TitleBlock = "ZONE PART MT C" ActiveSheet.Border = "MT ROUND 8 ZONAS" End If End If

Thanks and regards,


CHANDRA SHEKAR G
Developer Advocate
Autodesk Developer Network



Message 3 of 3

j.romo
Advocate
Advocate

OK got it

its like nesting the two first variables and then take another if to change the third

thanks a lot.

0 Likes