Jump to content
Benny Keyaerts

IF node with 3 choices in stead of boolean

Recommended Posts

Hello,

 

I've already learned a lot by reading your topics but this is something I can not find.

 

I have a rectangle and want to have the possibility to change its colour to green when the priority is 'low', orange when the priority is 'medium' and red when the priority is 'urgent'. I can change the colour with the If node when I want to change between two colours but how can I change between the three? The test is always a boolean so I can not choose from a list.

 

Is this possible? Thanks in advance for your help.

 

Share this post


Link to post

This is possible, but it is a bit tricky using Marionette. And I wouldn't use the If Node, I found it to be rarely helpful. In this case I would use Get Item - I made a short example with a radio button :-)

Change color.vwx

  • Like 2

Share this post


Link to post

Oachl Kini's answer works great, but for future reference (and if the one or more of the different outputs is in list format) here is how you can do it with the If node.

3ChoiceIfStatement.vwx

  • Like 1

Share this post


Link to post

Ok, this works as well but I will be using Oachl Kini's way. Its more transparent and it leaves more room for extra colours.

 

Thanks a lot. Amazing how quickly you get an answer on this forum!

Share this post


Link to post

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.

Guest
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.


 

7150 Riverwood Drive, Columbia, Maryland 21046, USA   |   Contact Us:   410-290-5114

 

© 2018 Vectorworks, Inc. All Rights Reserved. Vectorworks, Inc. is part of the Nemetschek Group.

×
×
  • Create New...