The subroutine below calculates the N60 from the test data. What I want is for the number produced to be pre-pended with the N60= label. So when refusal is achieved, I don't want N60= to show up. I know what I want to do, but in my minimal-experience programmer brain, I can't figure out how to make it work. Any advice is appreciated.
If any other routines are needed, I can provide those, but I'm hoping it can be worked out with just this one.
Here's the routine:
<<IIf(<<User System Data.KDOT SPT Refusal>>,_ ,_ <<CInt(_ <<RoundTo( <<Calc(_ (<<SAMPLE.Blows 2nd>> + <<SAMPLE.Blows 3rd>>) * _ <<SAMPLE.HammerCorrectionFactor>> / 60_ )>>_ ,1)>>_ )>>_)>>
A Delimit Data Function is what is used to put a prefix or suffix if the data value is true. I can't guarantee this will work because you said it was only part ..give it a try
For more detailed information on the delimitdata function see the Help file in gINT. <<IIf(<<User System Data.KDOT SPT Refusal>>,_ ,_ <<DelimitData(_ "N60 = ",_ <<CInt( <<RoundTo(_ <<Calc(_ (<<SAMPLE.Blows 2nd>> + <<SAMPLE.Blows 3rd>>) * _ <<SAMPLE.HammerCorrectionFactor>> / 60_ )>>_ ,1_ )>>_ )>>_ )>>_ )>>