Use a case structure. Wire "A" to the input selector and make three cases. Make the first case 350 and put your pass condition in it, then make the second 90 and put your fail condition in it. In the third case make it 0 and also make it the default case. See attached.
There is a couple ways that I can think about to do this. One would be to use a formula node where you can write the conditions like you have. Or you can use the "Equals" function to check the value. See the attached modified version of the example to see a couple of ways of doing this.
Yeah I remembered that right after I posted, the string method would be much more reliable. I don't usually need to worry about the specific value of a floating point number, just if its in a range. So I forget about these things.