If Statements

Homepage Clovertech Forums Cloverleaf If Statements

  • Creator
    Topic
  • #119640
    Rich
    Participant

    I have an IF statement that has a space in the condition.  I’m just confirming that I put single quotes around the condition like so:

    2(0).3(0).0(0).AIL(0).#3(0).[0] ne =’CLINIC SCREENING’

     

    Thank you all!

Viewing 0 reply threads
  • Author
    Replies
    • #119641
      Paul Bishop
      Participant

      I’ve always had issues when I have a literal with spaces I’m trying to compare to so what I’ve gotten into the habit of doing is copying the literal to a variable (I would use @lit_clinic_screening in this case), then have the if statement compare to that variable:

      2(0).3(0).0(0).AIL(0).#3(0).[0] ne @lit_clinic_screening

      Paul Bishop
      Carle Foundation Hospital
      Urbana, IL

      • #119642
        Rich
        Participant

        Thank you, Paul, that’ll work!

Viewing 0 reply threads
  • You must be logged in to reply to this topic.

Forum Statistics

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