because blank is not equal to '-None-' The blank is a value, and 'None' is a text. Also, you might not want to do that.
Nik
12/18/2018, 9:19 AM
What you should write is something like :
if(srno != '')
or even better if(srno && srno.length > 0)
p
prachi
12/18/2018, 9:31 AM
even they are showing the none value
n
Nik
12/18/2018, 10:53 AM
Then there must be a space or something that is missing in your comparison. Try copying that None from the Log and use trim in the comparision.
Something like:
if(srno.trim() != '- None -')
should resolve your problem.