I want to calculate a field in the field calculator that are dependent on the values in 4 other columns.
My columns are "A", "B", "C" and "D"
Now I want to fill the column "X" with:
if "A" and "B" are equal "0" I want to do "calculation_1_(A,B,C,D)"
if only "A" equals "0" I want to do "calculation_2_(A,B,C,D)"
if only "B" equals "0" I want to do "calculation 3_(A,B,C,D)"
else I want to do "calculation_4_(A,B,C,D)"
Can somebody give me the code for this? I am struggling with syntax and if/else structure...