Re: [Clip] Clip Bug
- ^!If ^%x% <= 0 skip
Oh, but you already did/had/solved/made_it_to_work; so you didn't need the
In theory, "as you said." Does it still do the same given a positive
number, say 10, rather than -10 negative 10? | Alan.
On Mon, Sep 29, 2008 at 5:01 AM, Art Kocsis <artkns@...> wrote:
> To me this is a bug although I under stand why it appears. Apparently the
> entire line of a conditional is parsed before execution so that a generated
> command/function that would be invalid is flagged are erroneous even though
> it would not be executed.
> For example:
> ^!Set %x%=-10
> ^!If ^%x% > 0 ^!InsertText ^$StrFill("_";^%x%)$
> This evaluates to:
> ^!If -10 > 0 ^!InsertText ^$StrFill("_";-10)$
> and results in being flagged as a syntax error.
> Yes, the work around is to separate the conditional from the action but it
> is a real pain to have to analyze each conditional as well as it makes for
> less efficient coding.
[Non-text portions of this message have been removed]