Unrecongnizable Lexical token error – IF Statement ct a /

Clovertech Forums Cloverleaf Unrecongnizable Lexical token error – IF Statement ct a /

  • Creator
    Topic
  • #118983
    Lynelle Harper
    Participant

      Hi –

      I’m trying to do an IF statement that contains a slash, then copy if true

      Cloverleaf v6.1.2

      IF 2(0).1.(0).RXE(0).#5(0).[0]   ct =/

      copy     2(0).1(0).RXC(0).#3(0).[0] ->2(0).1(0).RXE(0).#3(0).[0]

      I’ve tried variations but I keep getting the Lexical error

      Thanks in advance

    Viewing 1 reply thread
    • Author
      Replies
      • #118984
        Charlie Bursell
        Participant

          Did you escape it?  ct =\/

          • #118985
            Lynelle Harper
            Participant

              Yes, with the same results –

              [0:TEST] IF expression parse failed: Unrecognizable lexical token
              Error occurred at: ‘\/’
              [0:TEST] Unable to compile XLT ‘Epic_Orders_to_PyxisES.xlt’.

            • #118987
              Lynelle Harper
              Participant

                I can get past the error if I copy \/ to a variable

                copy =\/ -> @RXE_5_Slash

                but then my copy stmt doesnt copy as expected. I’ll have to go back and check my test file. Not sure what else to check.

                IF   2(0).1(0).RXE(0).#5(0).[0] ct @RXE_5_Slash

                COPY 2(0).1(0).RXC(0).#3(0).[0] -> 2(0).1(0).RXE(0).#3(0).[0]

            • #118986
              Jim Kosloskey
              Participant

                What release of CL?

                Try COPY =/ to a temp variable then use the Temp Variable in the IF in place of the =/ and see if that takes care of the issue.

                You should not have to do this but in some releases of Cloverleaf that was necessary. Hopefully this is not happening in the newest release of Cloverleaf.

                email: jim.kosloskey@jim-kosloskey.com 29+ years Cloverleaf, 59 years IT - old fart.

                • #118988
                  Lynelle Harper
                  Participant

                    ok, after posting and then seeing Jim’s response, I removed the escape and just did a copy to the variable as copy =/

                    That worked.

                    Cloverleaf v 6.1.2

                    Thanks so much!

                     

                     

              Viewing 1 reply thread
              • You must be logged in to reply to this topic.