How to create a counter?

OK, if that was your objective, then I understand the While Action.

However, I have to add a ==strong caution== to all readers: This is a very dangerous macro that does not provide for any exit. IMO, all loops should always have some form of exit, even if it is a timeout (exit after N seconds).

For this type of macro, it would probably be better to NOT have the While Action, and to trigger the macro every so often using a Periodic trigger.

Perhaps @Saul can shed some light on how he plans to use this method.