Compare Field Value equals = in Xlate IF

Clovertech Forums Read Only Archives Cloverleaf Cloverleaf Compare Field Value equals = in Xlate IF

  • Creator
    Topic
  • #54709
    Davin Studer
    Participant

      I’m trying to compare if my field value equals the string “=” in and IF operation in my Xlate. I’m not totally sure how to do it. I’ve tried all of the below and none of them work. Thoughts?

      IF

         1(0).1(0).3(%g1).OBX(0).#5(0).[0].[0] eq =”=”

      IF

         1(0).1(0).3(%g1).OBX(0).#5(0).[0].[0] eq =’=’

      IF

         1(0).1(0).3(%g1).OBX(0).#5(0).[0].[0] eq ==

    Viewing 3 reply threads
    • Author
      Replies
      • #82656
        Jim Kosloskey
        Participant

          Try COPY == to a temp variable (maybe @equal)

          then test against the temp variable.

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

        • #82657
          Keith McLeod
          Participant

            Have you tried:

            IF

              1(0).1(0).3(%g1).OBX(0).#5(0).[0].[0] eq “=”

          • #82658
            Davin Studer
            Participant

              I did try IF  1(0).1(0).3(%g1).OBX(0).#5(0).[0].[0] eq “=” after I created the post.  And …

              IF

               1(0).1(0).3(%g1).OBX(0).#5(0).[0].[0] eq =”=”

              IF

               1(0).1(0).3(%g1).OBX(0).#5(0).[0].[0] eq ‘=’

              IF

               1(0).1(0).3(%g1).OBX(0).#5(0).[0].[0] eq =’=’

              I’ll try the @equals suggestion

            • #82659
              Davin Studer
              Participant

                Success!! The @equals suggestion worked. Thanks a ton.

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