int condition = (@P.x > 0) ? 1: 0; // short form if() test // defines an integer of 1 or 0
if (condition){
removepoint(geoself(), @ptnum); // if true remove points
}
I just use it like this however, I dont know if having a less code would have for performance or not
if (@P.x > 0 ){
removepoint(geoself(), @ptnum);
}