IF action in a xlate to test for the string S+RTN

Clovertech Forums Read Only Archives Cloverleaf Cloverleaf IF action in a xlate to test for the string S+RTN

  • Creator
    Topic
  • #54872
    Chuck Busch
    Participant

      I have an xlate where I need to test for this condition

      IF  0(0).RXE(0).#1(0).[5] eq =S+RTN

      when I test this I get this error:

      [xpm :xlt :ERR /0:  UNNAMED_TID:11/05/2015 15:43:59] IF expression parse failed: Unrecognizable lexical token

      [xpm :xlt :ERR /0:  UNNAMED_TID:–/–/—- –:–:–] Error occurred at: ‘+RTN’

      I have attempted to escape the + character several ways and I am not having any luck

      What is the correct syntax to escape an arithmatic operator using the eq or ct functions in an IF action?

    Viewing 1 reply thread
    • Author
      Replies
      • #83281
        Keith McLeod
        Participant

          Try copying that value into a variable and then use the variable in the IF statement.

          copy =S+RTN –> @RXE_1_5_test

          IF 0(0).RXE(0).#1(0).[5] eq @RXE_1_5_test

          Hope this helps.  What version of Cloverleaf are you on?

        • #83282
          Chuck Busch
          Participant

            Thank you that worked.

            I am on CloverLeaf 6.1.1

        Viewing 1 reply thread
        • The forum ‘Cloverleaf’ is closed to new topics and replies.