Quantcast
Channel: SCN : All Content - All Communities
Viewing all articles
Browse latest Browse all 3074

if fieldA = 0 then return "N/A" else return fieldA

$
0
0

I have a database field possible values of 0 through 5

If the value is 0, I want to return "N/A" as the value instead of 0

If the value is anything else, return that value

 

How can I do this?

 

if {fieldA} = 0

then "N/a"

else

{fieldA}

 

A string is required here.

 

OK so,

 

if {fieldA} = 0

then "N/a"

else

ToText ({fieldA})

 

the value always returns as 0.00, except if the value is 0, then it returns as N/A

 

What am I doing wrong?


Viewing all articles
Browse latest Browse all 3074


<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>