13152Re: [Clip] ^!If Bug ?
- Jan 5, 2005John Mitchell wrote:
>^!Set %comment%=">>"1. same here.
>^!If ^%Str%=^%comment% ^!Prompt ^%Str%=^%comment%
>^!If ^%comment%=^%Str% ^!Prompt ^%comment%=^%Str%
>; End of clip -------
>If I run it against an open document containing arbitrary text the first
>^!If tests TRUE and the second tests FALSE
>, except when the first two2. same here.
>characters of the current paragraph are >>, in which case both tests
>resolve to FALSE!!
>Am I about to be mightily embarrassed when someone points out an obviousNot obvious. It is just my speculation.
# 2 above, each variable has >> inside it.
combine that with the = that you have in between each of the two
variables results in:
>>=>>And that looks like it could mean "greater than or equal to"
Perhaps the parser gets confused. Technically I suppose it shouldn't.
I just tested:
^!IfSame "^%comment%" "^%Str%" next else Skip
^!Prompt ^%comment% ^%Str%
- << Previous post in topic Next post in topic >>