I am working in SDE geodatabase where I have a feature class 'Mange_Waste' and "Q1", "Q2" are two fields. I wanted to use python script for populating "Q2" from "Q1" with a condition. Like, if the value in "Q1" is "a", then it should return "1" in "Q2". I have hundreds of records in "Q1".
I am using following code however, it's giving me syntax error.
If Q1 == "a":
Q2 = 1
else :
Q2 = 0
Kindly tell me what I am doing wrong and what should be the correct code.