Hi,
I want to basically to do this:
If the value is 100 or 200 or 300 or 400, then perform an action.
Does anyone know how to do this?
Hi,
I want to basically to do this:
If the value is 100 or 200 or 300 or 400, then perform an action.
Does anyone know how to do this?
In C++ it would be
if( Value == 100 || Value == 200 || Value == 300 || Value == 400 )
OR
if( Value >= 100 && Value <= 400 )
In blueprint, use the “OR” node as per the screenshots below:
Just want to say that your second if statement is not equivalent to the first one. The first one covers 4 discrete values, the last one covers an entire range. Just wanted to point this out.
Thanks a lot!
Thanks for pointing that out, was actually going to do that, completely forgot to.
You could just use COMPARE node and setup the values you need to compare ![]()
Also you could use a switch or multigate for what happens. There are a few ways to do this and it is all up to you on how you want to meet your goal.