If action

  • Creator
    Topic
  • #47734
    Jim Gibson
    Participant

    I am using and If action in an Xlate I am creating.  The If condition is:

    0(0).OBX(0).00584  eq =SYSTEM GENERATED

    When I run this through the route tester, I get the error:

    [xpm :xlt :ERR /0:  UNNAMED_TID] IF expression parse failed: Extra characters after expression

    Error occurred at: ‘D’

    Anyone know why?  I have tried

    =(SYSTEM GENERATED)

    =’SYSTEM GENERATED’

    =”SYSTEM GENERATED”

    All with the same result.  What is the trick to using multiple word condition?

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

      The simpliest thing to do here is put the comparison in a temp values and use it.  For example copy SYSTEM GENERATE -> @comp

      Then 0(0).OBX(0).00584  eq  @comp

      will work.

      Unfortunatly the parser in the IF statement does not parse embedded spaces very well.

    • #56566
      Jim Gibson
      Participant

      Thanks,

      I tried this and it works.  Seems like extra code but if it works it works.

      Jim

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

Forum Statistics

Registered Users
5,126
Forums
28
Topics
9,295
Replies
34,439
Topic Tags
287
Empty Topic Tags
10