Hello,
It seems to be working now in HTML5, actually.
I am using Adobe Captivate 8.
I have the (conditional) advanced action "Expression: var1 = var1 + 1" attached to a click box. (The condition is simply "1 is equal to 1". I have been using only conditionals so that the advanced actions are as flexible as possible. That was a tip from RodWard. : ) ) The original value of var1 was left blank.
I have a text caption on the screen with the content of "$$var1$$".
It seems to work in HTML5. The first time I hit the click box, a "1" appears. The next time, it's "11", and so forth. It does not work like I want it to in swf. In swf, the first time I hit the click box, a "1" appears. The next time, it's "2".
Incidentally, I see the same behavior in HTML5 and SWF whether I use 1, the number, in the expression, or "1", the string. It doesn't seem to matter.