8545Re: [Clip] Help
- May 24 1:51 PMClint Tredway wrote:
> I think this will do it:Here are some ways to improve on that.
> ^!If ^$IsEmpty(^?[Your name:=John])$ = 1 ^!Jump +2
> Name: ^?[Your name:]^%nl%
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%
- << Previous post in topic Next post in topic >>