Forum Discussion
igormicev
5 years agoContributor
Hi @amubeen,
You’d better use multiple checks when it comes to nulls from csv file. It can be an empty string, or NULL or null or Null or (null), , etc.
One way is this:
($NULLABLECHAR == ““ || $NULLABLECHAR.toLowerCase().indexOf(‘null’) > -1) ? null : $NULLABLECHAR
However, settings can help you also, but if you fully trust the csv incoming data (e.g. always having null, but not (null) which is different)
/Igor