Howdy, Stranger!

It looks like you're new here. If you want to get involved, click one of these buttons!

Counters?

I need a page that has 1 or more numbers with a plus and minus button next to it.  For example:
[-]  20  [+]  And I can click the plus to add one and the minus to subtract one.  Is it posssible?

Comments

  • If you are planning on just using 1 page I guess you could do a [[Add]] and [[Subtract]] with everything on it and just have different code. On add have something like
    <<set $counter += 1>>
    and subtract
    <<set $counter -= 1>>
    Make sure at the start to have it state
    <<set $counter to 20>>
    so it knows where to start and to view it on screen
    <<print $counter>>
    Hope I helped and if you have any further questions please ask :).
Sign In or Register to comment.