Timeline for Basic If/Then in Python Parser of ArcGIS Field Calculator?
Current License: CC BY-SA 3.0
4 events
when toggle format | what | by | license | comment | |
---|---|---|---|---|---|
Nov 26, 2017 at 11:17 | history | edited | Jason Miller | CC BY-SA 3.0 |
Added additional scenario for a question asked in a comment
|
Nov 26, 2017 at 11:11 | comment | added | Jason Miller |
If you have more than one condition, you can nest the 2nd (and subsequent) "if" conditions inside the else statement... so you might end up with something like this... 1 if !YEAR! == 2001 else (2 if !YEAR! == 2002 else (3 if !YEAR! == 2003 else 0))
|
|
Nov 24, 2017 at 0:09 | comment | added | khaliff | How should I modify this calculation if I have more than one condition, I mean as if we are using "elif"? | |
May 14, 2014 at 20:19 | history | answered | Jason Miller | CC BY-SA 3.0 |