benCNever, never do that, never try to compare two float to see if they are equal: it will never work.
I was just using an “if” statement to check if the value was exactly equals to “0.7382” but it returns nothing.
I had the same problem (see here [sidefx.com]) and what you have to do instead is compare a value (the value you are looking for) to a range, with your example you can write the following code:
if(value > 0.73 && value < 0.74) { //Do stuff }
Or also:
float _tolerance = 0.01; if( (value - 0.7834) <= _tolerance) { //Do stuff }
So basically to get that to work you dont check if the two values are equal, but if the two values are more or less close