Forum Discussion
Ajay_Chawda
7 years agoContributor
Hi Bhaskar ,
You can use ternary operator to replace null value with number.
eg:- $firstname==‘null’?0:‘’
sbhaskar85
7 years agoNew Contributor II
It worked. Had to remove the quotes before and after NULL.the condition looked like
$firstname==null?2:$firstname
Thanks much for the idea
Related Content
- 3 years ago