Jump to content

Numbering


Fletch

Recommended Posts

I need to create a rule that starts a sequential number sequence. Once it hits 10,000 it needs to restart back to 1 and repeat the sequence. I'm guessing it's a fairly easy JavaScript formula. Maybe not. Any help would be greatly appreciated.
Link to comment
Share on other sites

create a rule (YOUR RULE NAME) and use the following code. If you sequence number is 10,000 it'll set it to 10,000 due to 0 remainder......

 

var setA = 10000

var a = FusionPro.Composition.inputRecordNumber%setA

 

if (a==0)

a = setA

 

return a

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...