Hi,
I’d like to know if there is a simpler alternative to using multiple branches. Please look at the image below so you know what I mean.
Is there like one big branch that I can use instead of many normal branches or something else?
Hi,
I’d like to know if there is a simpler alternative to using multiple branches. Please look at the image below so you know what I mean.
Is there like one big branch that I can use instead of many normal branches or something else?
Hi
You have many solutions depending what you need. Maybe not in your case, but Compare Integer is great tool. Also good is Switch on Integer what would be best in this example.
https://i.imgur.com/W8gmfQV.png?1
Instead of variable1, variable2 etc or as you have Input Digit 1st, 2nd… you should set Array of Integers
I’ll just add that the Select node can be quite powerful as you can make it spit out pretty much anything based on the index type, which is also configurable.
Hi,
Thanks for your responses Vaheva and Everynone.
By using the Switch On Integer tool, how would I get, for example, my
inputDigit1st to get set with currentNum’s value IF firedDigitCounter == 1,
inputDigit2nd to get set with currentNum’s value IF firedDigitCounter == 2,
inputDigit3rd to get set with currentNum’s value IF firedDigitCounter == 3,
and so on…
Would I still be able to use array variables in this case?
I’ve simplified my bp scripting a little, just to make it a bit clearer what I’m trying to do. Please look at the image below.