- May
- 13,807
- 211
I spent a couple hours figuring out a bug in a BTM and it boils down to this.
This works as expected.
This works differently. The comma between xxx and yyy is being seen as belonging to @IF but the ,yyy still contributes to @FORMAT's length.
Escaping that comma isn't perfect. It fixes the problem with @IF but the escape character itself contributes to @FORMAT's length even though it's not printed.
I figure the escape character shouldn't contribute to @FORMAT's length (and that that might be hard or impossible).
This works as expected.
This works differently. The comma between xxx and yyy is being seen as belonging to @IF but the ,yyy still contributes to @FORMAT's length.
Escaping that comma isn't perfect. It fixes the problem with @IF but the escape character itself contributes to @FORMAT's length even though it's not printed.
I figure the escape character shouldn't contribute to @FORMAT's length (and that that might be hard or impossible).