The use case here is:
I have a table with many rows, for flavor text. It is shuffled randomly in release mode. But in debug mode I want to test that it works and also that there is the appropriate looping text at the end. I have a counter that increments so you can
choose row counter in table of random stuff;
say "[mytext entry]";
increment counter;
if counter > number of rows in table of random stuff:
say "You've seen everything, but I'll loop again."
now counter is 1;
So I would like to have
section my table
table of random stuff
mytext
"a"
"b"
"c"
"d"
section my table - For Release Only
table of random stuff
mytext
"e"
"f"
"g"
"h"
Is there a way to do this in earlier versions of Inform 7 e.g. 6G60?
My workaround is to set the counter to (# of rows - 4) with a not-for-release test command (e.g. “tableend”) and then just activate the random text 4 times to verify the looping text. Which works well.
But I thought I’d ask for more if it was there.
(Yes, another workaround is to install a later version of Inform. But that bloats the binary, I like the ability to create zblorbs–it helps me control my project size by keeping things as zblorbs, which I think I need to do. And a gblorb binary is slower to test.)