Conditions in Blueprint Code

This post was originally published on this site

New to vRA8 and still learning the syntax for blueprint as code.  The code below takes the input of the OS from the users and changes the customization spec to be used based on that input.  That works great when you only have two OS’ to pick from.  But how do I modify something like that to work with more than two OS?  It seems like conditions can only be A or B based on match.  Is there a way to rework that to work for multiple OS choices?

customizationSpec: ${input.OS,”Windows 2016″)? “Win2016” : “Win2019”}

Leave a Reply

This site uses Akismet to reduce spam. Learn how your comment data is processed.