Jump to content

Else if command


Dumarus

Recommended Posts

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

 

Link to comment
Share on other sites

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.

Link to comment
Share on other sites

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 :-)

 

Link to comment
Share on other sites

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.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...