Hi, I am relatively new to Dynamo, and I am trying to figure out how to return a result of 1 or -1 based on text inputs in a string ie: LHS = -1 and RHS = 1. I have played around with IF node but with no success. I have a solution that works but it won’t allow the LHS/RHS node to be set as an input for Dynamo player as it is a code block. Any suggestions / comments would be greatly appreciated.
hello
with if
The dictionary solution proposed by Mr. Meychik is faster than nested ifs
cordially
christian.stan
3 Likes