This has advanced my knowledge of Python at least 2 times - thanks! How would it be written if there are 3 fields invloved: - if A = a condition, then multiply B by a constant to generate C?
I'm happy that it helped. Sorry for the delay. you need to introduce b when you are defining the function. for example: def test(a, b): if a == 'Australia' or b == 1: return 5 else: return 0 and in the bottom window: test( !Country_Re! , !OBJECTID! )
First video I found where I actually was able to make a statement work ! :D
Fantastic explanation! Cleared my way! Thanks.
It was super helpful! Thank you so much.
I appreciate your effort. This is really a good work🙏
Thank you so much! You explained it so clearly.
I am grateful for the amount of time and effort
This has advanced my knowledge of Python at least 2 times - thanks! How would it be written if there are 3 fields invloved: - if A = a condition, then multiply B by a constant to generate C?
I'm happy that it helped.
Sorry for the delay.
you need to introduce b when you are defining the function.
for example:
def test(a, b):
if a == 'Australia' or b == 1:
return 5
else:
return 0
and in the bottom window:
test( !Country_Re! , !OBJECTID! )
Well done 👏
Thanks!
thanks a lotttt
thanks a lotttt
thanks a lotttt