I have several fields in my result set that are 0 or 1. 0 is 'Pass', 1 is 'Fail'
I would like to create a function that accepts one IN parameter (the 1 or 0) and returns a string 'PASS' or 'FAIL'.
I know I can do this for every field individually (i.e. If {test1.field1}=0 then 'Pass' else 'Fail'
But, would rather have a generic reusable function.
Any assistance greatly appreciated.
thanks,
Dan
I would like to create a function that accepts one IN parameter (the 1 or 0) and returns a string 'PASS' or 'FAIL'.
I know I can do this for every field individually (i.e. If {test1.field1}=0 then 'Pass' else 'Fail'
But, would rather have a generic reusable function.
Any assistance greatly appreciated.
thanks,
Dan