Unlock a world of possibilities! Login now and discover the exclusive benefits awaiting you.
hi all,
I have a column coming from a table with nothing on some rows.. I wasn't able to find out if the value is null, blank..or what is it.
I tried
if(len(trim(MyField))=0,1,0)
if(isnull(MyField)>0,1,0)
if(MyField=Null(),1,0)
if(MyField='' ,1,0)
if(MyField=' ' ,1,0)
none of the above gave me 1 as a result when trying to switch the value on the script side..
the following worked when trying to test through the UI if(MyField='' ,1,0) and returned 1 but i need it to work on the script..
Any idea on what is nothing could be?
Best,
Alec
I found the issue........... it is a concatenate of two tables on my script and I was trying with the top part while the issue on the second part of the concatenation..
not len(trim(MyField))=0
This may still not work, but just curious if this helps:
if(Len(Trim(MyField))=0,1,0)
Best,
Sunny
=If(Len(Trim(MyField))=0,1,0)
That's what I used but it didnt work too..
Would you be able to share a sample?
Best,
Sunny
I am unable to share it..
Why not try them all at once?
If(Len(Trim(MyField)) = 0 or IsNull(MyField) or Trim(MyField) = '', 1, 0)
Sunny
Please find attached the qvw..
I don't see anything attached.