View Single Post
Sendric
Senior Member
 
Join Date: Jul 2010
Posts: 3,147

Old September 25th, 2017, 04:09 AM
Something like this might help you out:

Code:
var tagexist as number

foreach pick in BaseCustSp
  if (eachpick.tagis[Custom.Tag] <> 0) then
     tagexist += 1
  endif
nexteach

tagexist = round(tagexist/3,0,-1)
This should provide a result equal to the number of "groups of three" you are looking for.
Sendric is offline   #2 Reply With Quote