1

2

I'm writing a function so that if the user clicks on a certain region, a value is returned. The function takes in a condition list like the one below and a point.

```
condition = {(x + .5)^2 + y^2 < 1, (x - .5)^2 + y^2 < 1};
P1 = RegionPlot[condition[[1]] && condition[[2]], {x, -2, 2}, {y, -2, 2},
PlotStyle -> Red];
P2 = RegionPlot[condition[[1]] && ! condition[[2]], {x, -2, 2}, {y, -2, 2},
PlotStyle -> Red];
P3 = RegionPlot[condition[[2]] && ! condition[[1]], {x, -2, 2}, {y, -2, 2},
PlotStyle -> Red];
```

I can't figure this out at all. Can someone help me?

What and what ? Clarify the problem as right now you have so much info scattered across the post with no explicit connection to it ( the problem ) – Sektor – 2015-04-25T14:44:22.390

I edited the question. Does this make more sense? – studentguest – 2015-04-25T15:23:24.760