How to test if a float is between two values?

I’m trying to write a conditional statement in blueprints using the branch and I have no clue who to make it use the && or || operators.

if( someFloatValue >= someThreshold && someFloatValue <= anotherThreashold ){
    ...
}

&& is the Logical AND operator.

|| is the Logical OR operator.

You can type those symbols into the blueprint search and it should show up as “Logical AND” or “Logical OR”.

Was using the wrong search query. Thanks.

You can use the InRange node, which allows you to set a min, max and whether each side is inclusive.

3 Likes