Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Help Adding An Incrementing number to an entry
#2
If the macro runs multiple times

Code:
Copy      Help
int+ g_away
g_away+1
str s.format("Im away %i" g_away)
outp s

To reset the global variable, use this macro:
Code:
Copy      Help
int+ g_away=0


If the macro runs continuously

Code:
Copy      Help
int away
rep
,away+1
,str s.format("Im away %i" away)
,outp s


Messages In This Thread

Forum Jump:


Users browsing this thread: 1 Guest(s)