Timeline for If-then-else Statements and string errors?
Current License: CC BY-SA 3.0
7 events
when toggle format | what | by | license | comment | |
---|---|---|---|---|---|
Apr 9, 2018 at 17:29 | comment | added | NULL.Dude | show us a screenshot of your table and the fields you want to use we can provide code | |
Apr 9, 2018 at 16:57 | comment | added | Dan C |
@RJJoling right, or def reclass(LandUseField1, LandUseField2) .
|
|
Apr 9, 2018 at 16:52 | comment | added | RJJoling |
I think Dan_C meant that the arguments in the function don't have to have the same names as they are in the feature class. Such that the function call will be reclass(!PropType!, !PropClass!) , but the function definition could be def reclass(a, b) .
|
|
Apr 9, 2018 at 16:43 | comment | added | zemken12 | Thank you very much. That could be part of the confusion. Can you give an example of how to better approach naming variables in this context? Proptype > num and Prop class > text What would you name it? | |
Apr 9, 2018 at 16:41 | history | edited | Dan C | CC BY-SA 3.0 |
added 125 characters in body
|
Apr 9, 2018 at 16:40 | vote | accept | zemken12 | ||
Apr 9, 2018 at 16:36 | history | answered | Dan C | CC BY-SA 3.0 |