Jump to content

vex group by range


bonassus

Recommended Posts

Your code is correct, you're adding points below 30 into f@group_s1, and points greater than 30 & lower than 60 (so 31 to 60) are added to f@group_s2.

Although in this case the point 30 is neither in @group_s1 nor @group_s2, because both conditions are only targeting numbers lower than 30 and higher than 30. To fix that just add the "=" sign to either the "@ptnum <= 30" for @group_s1 or "@ptnum >= 30" for @group_s2.

image.thumb.png.f7c427bd171b26a842e10afda4515e2b.png

Link to comment
Share on other sites

14 hours ago, Ziyad said:

Your code is correct, you're adding points below 30 into f@group_s1, and points greater than 30 & lower than 60 (so 31 to 60) are added to f@group_s2.

Although in this case the point 30 is neither in @group_s1 nor @group_s2, because both conditions are only targeting numbers lower than 30 and higher than 30. To fix that just add the "=" sign to either the "@ptnum <= 30" for @group_s1 or "@ptnum >= 30" for @group_s2.

image.thumb.png.f7c427bd171b26a842e10afda4515e2b.png

Thanks for the correction. I left out the @ptnum in the second half of my expression. Seems kind of obvious now. Much appreciated.

 

  • Like 1
Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...