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)>>_ )>>_)>>