IF statement causing testing tool to hang

Homepage Clovertech Forums Read Only Archives Cloverleaf Cloverleaf IF statement causing testing tool to hang

  • Creator
    Topic
  • #54954
    Kevin Crist
    Participant

    i was asked to make the following change,

Viewing 3 reply threads
  • Author
    Replies
    • #83566
      Brian Lubkeman
      Participant

      I have not personally tried using temporary variables in an IF statement, so I cannot claim that to the be issue.  However, you may want to try this instead.

      Code:

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

      Brian Lubkeman
      Technical Analyst III - Integrations
      McFarland Clinic, Ames, Iowa

    • #83567
      James Cobane
      Participant

      Having you tried naming the temp variable something alpha rather than numeric (i.e. @three instead of @3)?  Probably not the issue, but sometimes odd things happen…..

      Jim Cobane

      Henry Ford Health

    • #83568
      Kevin Crist
      Participant

      I did end up changing to the @three and works like a charm.

      thanks.

    • #83569
      Keith McLeod
      Participant

      If you are using %g1 as your iteration variable for your inbound OBX repetitions by group, you may want to try something like:

      IF $%g1 == =2 then

       copy 1(0).1(0).1(%g1).OBX(0).#5(0).[0] –> 0(0).NTE(0).#3

      You can access your iteration variable using the $%g1 notation without the need of creating a new @variable.

Viewing 3 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