Community
Inventor Forum
Welcome to Autodesk’s Inventor Forums. Share your knowledge, ask questions, and explore popular Inventor topics.
cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 

Control True/False parameter based on Multi-Value options "A" or "B"

2 REPLIES 2
SOLVED
Reply
Message 1 of 3
Binary12
662 Views, 2 Replies

Control True/False parameter based on Multi-Value options "A" or "B"

Hi,

 

I have a parameter with options A, B or C and if the parameter is set to either A or B then another True/False parameter should be set to False.

 

I've tried this

 

 

 

SyntaxEditor Code Snippet

If WallFront = "A" Or "B" Then
        FlangeFront = False
    Else
        FlangeFront = True
End If

WallFront is a multi-value text parameter.

FlangeFront is a true/false parameter

 

 

but get error "Conversion from String .... to type 'Boolean' is not valid". Is this possible to do and if so what am I doing wrong?

 

 


Best,

Fredrik

 

 

 

2 REPLIES 2
Message 2 of 3

Hi  fredrikjohan.carlsson,

 

Try this:

 

If WallFront = "A" Or WallFront = "B" Then
        FlangeFront = False
    Else
        FlangeFront = True
End If

I hope this helps.
Best of luck to you in all of your Inventor pursuits,
Curtis
http://inventortrenches.blogspot.com

 

Message 3 of 3

Ahh, of course! Thank you Curtis!

Can't find what you're looking for? Ask the community or share your knowledge.

Post to forums  

Autodesk Design & Make Report