Mask Colours between 2 values

i have a texture and i want to mask the bright fire embers from it so i can use them to drive an emissive map

for example i want to mask from 168, 70, 50 to 168, 119, 50 so the mask would be all colours from that range which then i can use it for an emissive map

I looked for examples out there but couldnt find much, any help would be appreciated

Can you upload a pic of the texture here?

You can convert RGB channel values by diving the value with 255. For instance 70 would be: 70/255 = 0,2745098 and 119/255 = 0,4666666. With these new values in the space of 0 to 1, you can use if statements to determine what should happen between those values.

For instance, you could do IF more than 0,2745098 and less than 0,4666666. do this, else this. The included Unreal Engine IF node works fine for all of this. I however have created my own conditional statement nodes. They can be purchased here and are in my opinion a little easier to use: Elias Wick | Math.

Here is how I would solve it:

This code returns a gradient from 0 to 1. Black being 0 and white being 1.

I can grab values in between (in this case 0.5 and 0.75) using these nodes: