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

23912Re: [Clip] Comparing with a space

Expand Messages
  • Jean-François Colas
    Jul 19, 2013
    • 0 Attachment
      Hello Art,

      Thanks, with the ^%Space% and quoting I finally got it.

      You said:
      > the built-in predefined variables (^%empty%, ^%space%, ^%nl%, etc),

      Where can I complete the etc ?

      Regards,
      J.-F.


      Le 18/07/2013 20:41, Art Kocsis a écrit :
      > At 7/18/2013 08:20 AM, J.-F. wrote:
      >> Hello List,
      >>
      >> I'm sorry if the question seems a bit "trivial", but I can't find the
      >> way to compare the cursor position with a space. If I would like to
      >> compare with a dash, I would write:
      >> ^!If -=^$GetChar$ GoFurther
      >> But it seems more tricky to compare with a space or a tab. Probably I'm
      >> missing a little syntax element...
      >
      > The easiest way is to simply enclose your operands in quotes:
      >
      > ^!If " "="^$GetChar$" GoFurther
      >
      > but for better visibility and reliability, it is better to use the built-in predefined variables (^%empty%, ^%space%, ^%nl%, etc), for special characters such as these:
      >
      > ^!If "^%empty%"="^$GetChar$" GoFurther
      >
      > In addition, make a habit of enclosing text strings in quotes.
      >
      > Art
      >
      >
      >
      > ------------------------------------
      >
      > Fookes Software: http://www.fookes.com/
      > NoteTab website: http://www.notetab.com/
      > NoteTab Discussion Lists: http://www.notetab.com/groups.php
      >
      > ***
      > Yahoo! Groups Links
      >
      >
      >
      >
    • Show all 9 messages in this topic