Loading ...
Sorry, an error occurred while loading the content.

8545Re: [Clip] Help

Expand Messages
  • Wayne VanWeerthuizen
    May 24, 2002
      Clint Tredway wrote:

      > I think this will do it:
      > ^!If ^$IsEmpty(^?[Your name:=John])$ = 1 ^!Jump +2
      > Name: ^?[Your name:]^%nl%

      Here are some ways to improve on that.

      Use "^!IfTrue" rather than "^!If".

      Doing so makes the clip slightly faster, more reliable, easier to read
      and eliminates the need for the "=1".

      "^!Jump +2" moves the cursor two lines down in the document window.

      You are confusing it with "^!Goto SKIP_2"

      But with the If-type commands, ^!Goto is not needed.

      So I would change your example to:
      (Note the need to only skip over one line, not two)

      ^!IfTrue ^$IsEmpty(^?[Your name:=John])$ Skip
      Name: ^?[Your name:]^%nl%

      But it will also work like this: (one long line)

      ^!IfFalse ^$IsEmpty(^?[Your name:=John])$ ^!InsertText Name: ^?[Your name:]^%nl%
    • Show all 11 messages in this topic