Hi Ben Wan ,
What you need is to calculate two buffers and determine the symmetric difference between those polygons and test against that polygon. In the example below you would continue using the function "Intersects" using the variable "pol":
var buf1 = Buffer($feature, 250, "feet");
var buf2 = Buffer($feature, 500, "feet");
var pol = SymmetricDifference(buf1, buf2);
An example to show how this works:
var pointJSON1 = { "x": 0.0, "y": 0.0, "spatialReference": { "wkid": 3857}};
var pnt1 = Point(pointJSON1);
var buf1 = Buffer(pnt1, 250, "meter");
var buf2 = Buffer(pnt1, 500, "meter");
var pol = SymmetricDifference(buf1, buf2);
var pointJSON2 = { "x": 0.0, "y": 350.0, "spatialReference": { "wkid": 3857}};
var pnt2 = Point(pointJSON2);
Console("pnt1 intersects: " + Intersects(pol, pnt1));
Console("pnt2 intersects: " + Intersects(pol, pnt2));
return "OK";
This will return in the Console:
pnt1 intersects: false
pnt2 intersects: true