Reply To: Multi values in IF statement

Clovertech Forums Read Only Archives Cloverleaf Cloverleaf Multi values in IF statement Reply To: Multi values in IF statement

#57474
James Cobane
Participant

    Mark,

    You can use a different iteration variable on the ouput field (i.e. %s2) and increment that only when you actually perform a copy based on OBX:5 being valued.  So, your COPY statement will look something like:

    COPY (0(0).OBX(%s1).00571.[0] –> (0(0).OBX(%s2).00571.[0]

    (not sure of the actual field numbers, but same concept)

    And you’ll perform a MATH operation after your copy statement, with the following input values:

    $%s2

    =1

    and the output value will be:  $%s2

    You can reference/manipulate the actual value of the iteration variable by preceding it with the $ sign.  So, you’re using a new iteration variable (%s2) on the output side which is only being incremented when the condition (OBX:5 != @null) is true.  Hope this makes sense.

    Jim Cobane

    Henry Ford Health