October 27, 2019

June 4, 2018

Please reload

Recent Posts

Remove point by condition

July 24, 2015

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);

}

Please reload

Follow Us
Please reload

Search By Tags
  • Facebook Basic Square
  • Twitter Basic Square
  • Google+ Basic Square