Xlate IF variable

Homepage Clovertech Forums Read Only Archives Cloverleaf Cloverleaf Xlate IF variable

  • Creator
    Topic
  • #49612
    Todd Yingling
    Participant

    I am trying to use a variable in an IF statement in an xlate.

Viewing 4 reply threads
  • Author
    Replies
    • #62724
      Tom Rioux
      Participant

      You should not encounter a problem with the @ symbol in an IF statement.  You should be able to access it with something like:

      IF 0(0).PV1.00133.[0] eq @null

      The syntax does not require an = sign before the variable name.  

      Can you give us an example of how you are attempting to access it?

      Thanks….

      Tom Rioux

    • #62725
      Todd Yingling
      Participant

      Thanks Tom.  I was using the = sign.  I removed that and it works fine now.  

      Thanks again,

      Todd

    • #62726
      Ruth Chong
      Participant

      Hi All Experts

      If say, I have a few variable and the only different is the suffix number, for example, Rad_Display_info1, Rad_Display_info2, Rad_Display_info3, I think more efficiently is to check IF Rad_Display_info* then empty…how to let the engine recognise this wild card?

      I have this error when I run the tester

      [0:TEST] IF expression parse failed: Unrecognizable lexical token

      Error occurred at: ‘*’

    • #62727
      Tom Rioux
      Participant

      You may be able to iterate through this with a list basis.  Do you have an example of the segments or fields you are trying to search through?

      Thanks…

      Tom Rioux

    • #62728
      Ruth Chong
      Participant

      Thanks for the reply….

      I choose the ge so that any string equal or greater than the Rad_Display_info is catered for and its working..

      I iterate the OBX as a group of segment

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

Forum Statistics

Registered Users
5,117
Forums
28
Topics
9,292
Replies
34,435
Topic Tags
286
Empty Topic Tags
10