(2022-03-25, 22:57)Roland Melkert Wrote: Yes, just write them without the value assignment.
I couldn't get them to work except inside the loops themselves (which meant I had to declare them in both loops). But the cnt variable does, for some reason.
(2022-03-25, 22:57)Roland Melkert Wrote: scripts can't actually modify lines on a string level (mostly because of the undo tracking), but you get the same effect by creating a new line and deleting the old one.
For an example of this see the global mlcad.lua script.
Yes, I'll be studying that one tonight. :-)