You may want to stack masks or have specific channels go to certain areas. Each channel is generally a 0–1 value. So we can split a color channel into 4 separate masks of 0–1 using the split node.
Since I painted in the red channel, I can have red be a black or white mask. By plugging into the emission channel, you can see the result.