In the case of the app I'm making, I am showing numeric results (usually in the format 1.23), but I wish to parse out zero values and instead of displaying as "0.00", I want to display them as "-".
In C I can do an inline test and substitution like this:
Results.Measurement == 0.0 ? "-" : Results.Measurement
to use a dash if the result is zero.
Is there any b4a equivalent, or should I just create a function to do it?
In C I can do an inline test and substitution like this:
Results.Measurement == 0.0 ? "-" : Results.Measurement
to use a dash if the result is zero.
Is there any b4a equivalent, or should I just create a function to do it?