dbraughlr wrote:If it works for you, you may edit your preceding post with the shorter code and I'll delete mine. If it doesn't work, I'll still delete mine.
Thanks for that. I realise why nothing I tried worked - I hadn't noticed I was editing a string quoted inside another string. I was using the wrong quotes to insert my variable in the middle.
I probably wouldn't have bothered altering my original hack. Inelegant as it was it was only a quick hack which has (unsurprisingly) been promptly superseded by a properly coded & better solution in the latest update from Twister-UK.
I'll remember your teachings, Master Yoda, next time I try to hack a script.