Compare UV channels

I have:

texture1 on uv0
texture2 on uv1

Right now they are just added together, but I need to do some magic here.
I would like to do a comparison to say if the underlying uv0 is u < .5 and v > .5 then draw texture2 on uv1.

Can anybody give me a push here? I really only know enough to fumble through it. Thanks!

First Attempt:

Actually this one works:


a slight change from the split. I remembered something from a video about uvs splitting weird, but it was not the solution here.