Zhooper

Adding text in front of sequential numbering

Discussion created by Zhooper on May 20, 2014
Latest reply on May 22, 2014 by recurvata
I found this script on this site, but I need to add text in front of the output. Is there a way to do this? I want to add "FIT-" in front of each incremental number.

rec=0
def autoIncrement():
global rec
pStart = 2555 #adjust start value, if req'd
pInterval = 1 #adjust interval value, if req'd
if (rec == 0):
  rec = pStart
else:
  rec = rec + pInterval
return rec

____________________________________________________________
autoIncrement()

Outcomes