3 Replies Latest reply on Mar 20, 2013 11:32 AM by Roy Marshall

    [JS] CS5 Checking for FORCED_LINE_BREAK

    Roy Marshall Level 1



      I am putting together a small script containing some code to check if a character is a forced line break.


      This line wont work:

          if(myCharToCheck2.contents != "\r")

      Doing some digging, I found that a forced line break is an SpecialCharacter.FORCED_LINE_BREAK Enumerator,  and therefore is referenced in a different way.

      I cannot however work that into my simple line to check if myCharToCheck2 is NOT a forced line break.


      Any ideas anyone?