Dumarus Posted December 18, 2019 Share Posted December 18, 2019 Hi everyone, I'm building a HDA that will pick the the proper geo at the prims of the proper size, but I need the "else if" statement that is not available in hscript. What I need is the multiple if command that will output just one true value (there will be one true value actually). Is it possible w hscript? Best Regards Tom Quote Link to comment Share on other sites More sharing options...
anim Posted December 18, 2019 Share Posted December 18, 2019 3 hours ago, Dumarus said: Is it possible w hscript? it is { float out = 0; if($F>100) out = 3; else if($F>50) out = 2; else if($F>10) out = 1; return out; } however you can always use Python if necessary 1 Quote Link to comment Share on other sites More sharing options...
Christoph_H Posted December 18, 2019 Share Posted December 18, 2019 Has Hsript no integer type? Quote Link to comment Share on other sites More sharing options...
Dumarus Posted December 19, 2019 Author Share Posted December 19, 2019 On 18.12.2019 at 9:00 AM, anim said: it is { float out = 0; if($F>100) out = 3; else if($F>50) out = 2; else if($F>10) out = 1; return out; } however you can always use Python if necessary Thank you anim. This place is great :-) I will test it out. Quote Link to comment Share on other sites More sharing options...
Dumarus Posted December 21, 2019 Author Share Posted December 21, 2019 On 18.12.2019 at 9:00 AM, anim said: it is { float out = 0; if($F>100) out = 3; else if($F>50) out = 2; else if($F>10) out = 1; return out; } however you can always use Python if necessary Hi Anim. It is working like charm now. Thank you a lot :-) Quote Link to comment Share on other sites More sharing options...
Recommended Posts
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.