Message 1 of 3
if and then statements
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report
hi, i'm making an configurable inventor model with ilogic.
i have two paramerters that controle the same feutures. there are a total of 4 combinations that can be made. but only one of them works. this is the piece of code i used.
If aantal_vulpunten = "1" And leiding_inkomst = "achterkant" Then Feature.IsActive("achterkant:1", "Extrusion4") = "true" Feature.IsActive("achterkant:1", "Extrusion5") = False Feature.IsActive("top:1", "Extrusion2") = False Feature.IsActive("top:1", "Extrusion3") = False ElseIf aantal_vulpunten = "2" And leiding_inkomst = "achterkant" Then Feature.IsActive("achterkant:1", "Extrusion4") = False Feature.IsActive("achterkant:1", "Extrusion5") = "true" Feature.IsActive("top:1", "Extrusion2") = False Feature.IsActive("top:1", "Extrusion3") = False ElseIf aantal_vulpunten = "1" And leiding_inkomst = "bovenkant" Then Feature.IsActive("achterkant:1", "Extrusion4") = False Feature.IsActive("achterkant:1", "Extrusion5") = False Feature.IsActive("top:1", "Extrusion2") = "true" Feature.IsActive("top:1", "Extrusion3") = False ElseIf aantal_vulpunten = "2" And leiding_inkomst = "bovenkant" then Feature.IsActive("achterkant:1", "Extrusion4") = False Feature.IsActive("achterkant:1", "Extrusion5") = False Feature.IsActive("top:1", "Extrusion2") = "true" Feature.IsActive("top:1", "Extrusion3") = "true" End
any advise?
thanks in advance.