How to use the if elif else
condition to insert the data into the existing column?
Example, if the columnA = 'abc'
then columnB
return '123'
, if the columnA = 'efg'
then columnB
return '345'
, else
return '0'
.
so based on the data it should be:
if the Sale id = 'sale001'
then Sale no
return 'clo sale'
, elif the Sale id = 'sale002'
then Sale no
return 'blo sale'
, else return ''
.