I need to put some percent signs into a variable, which will be html text and contain some URls. I’m building the html one table cell at a time, using the Append to Variable action. I can create a % by using %% with no problem. But the next time I append to the variable, the existing text of the variable appears to undergo variable substitution, wiping out my %'s and everything between them.
The ‘1%7C2%7C4’ was converted to ‘17C4’. It looks like it thought that %7C2% was a variable and tried to replace it. But I don’t think appending to a variable should modify the pre-existing content. Besides, I don’t have a %7C2% variable, so it should have given an error if this is expected behavior.
I know about using the %!variable% syntax to avoid this sort of thing in other situations, but the Append to Variable action has me pick the variable from a list, so I can’t insert a ‘!’.
You know, it’s fascinating the way this forum corrupts the stuff I put into it. This time it even reordered the lines. I guess that’s what I get for putting html in my message. Here is another try with all angle brackets removed. At least it seems to be leaving my percent signs alone.
I need to put some percent signs into a variable, which will be html text and contain some URls. I’m building the html one table cell at a time, using the Append to Variable action. I can create a % by using %% with no problem. But the next time I append to the variable, the existing text of the variable appears to undergo variable substitution, wiping out my %'s and everything between them.
The ‘1%7C2%7C4’ was converted to ‘17C4’. It looks like it thought that %7C2% was a variable and tried to replace it. But I don’t think appending to a variable should modify the pre-existing content. Besides, I don’t have a %7C2% variable, so it should have given an error if this is expected behavior.
I know about using the %!variable% syntax to avoid this sort of thing in other situations, but the Append to Variable action has me pick the variable from a list, so I can’t insert a ‘!’.
This is a bug in the way “Append to Variable” is implemented. I’ve fixed it so that it doesn’t expand the parent variable any more (we’ll have a test build available shortly, I’ll let you know.)
Any update on this? I'm unable to work around. I can't just put enough %s in to escape them, because I'm doing the append in an action list that gets called several times, so I'd need a different number of %s each time though. Any word on when a new build will be available?