jeudi 2 septembre 2021

Change value depending on if + else if + else

I want to change the values in a column "final" depending on the value of 2 other columns "source1" + "source2" like this:

if (source1 == 1) > final = 1,
else if (source2 == 1) > final = 1,
else > final = 0.

Thanks!

Aucun commentaire:

Enregistrer un commentaire