Jump to content
ejr32123

selecting multiple points vex

Recommended Posts

Suppose I have a line with around 10 points. I can delete a point with removepoint.

if (@ptnum == 5) removepoint(geoself(),@ptnum);

What if I wanted to delete two or more points? It seems I could just add "or", right?

if (@ptnum == 5 || 2) removepoint(geoself(),@ptnum);

However, this does not work.

What would be the correct way of writing that? Thanks in advance

or.hip

Share this post


Link to post
Share on other sites

you have to type @ptnum again:

if (@ptnum == 5 || @ptnum == 2) removepoint(geoself(),@ptnum);

 

  • Like 1

Share this post


Link to post
Share on other sites
6 minutes ago, 3dome said:

you have to type @ptnum again:

if (@ptnum == 5 || @ptnum == 2) removepoint(geoself(),@ptnum);

 

thanks : ) I knew it would be something simple

Share this post


Link to post
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now

×