algorithmic modeling for Rhino
I have just started learning ghPython and have recently run into a problem. I was writing some set of rules to get a certain value as the output however, the result doesn't come out the way I wanted it.
As you can see above when the c = 90 and b is circle, the number should be 3, 4 or 5 but the result shows -0.2. Can someone explain to me why it doesn't work? Thank you. I really appreciate your help.
first of all, it's probably a better idea to only use ASCII identifiers, because we are using Python 2.
About the rest of the issue, it is difficult to tell because anything below the code screenshot you posted could modify the value of Cpe. An "if" does not exclude another.
for Robert McNeel & Associates
Thank you for your reply and thank you for telling me about the greek symbols. I've changed it to an ASCII identifier and it's currently working well.
I second Giulio's suggestion on the identifiers. Greek characters might cause issues.
Furthermore you have a statement
I'm pretty sure that's not what you want to write there.
I've included an example to display that your ifs do not exclude each other.
Thank you for your reply and thank you so much for your advice. I've change the a == a bit and the component is working well. Thank you again for your help.