Select to view content in your preferred language

Trouble Calculating a Field

3283
10
Jump to solution
12-11-2014 09:29 AM
MarkAccettulla
New Contributor

I don't know a whole lot about python and scripting, so I was hoping somebody could give me a couple pointers on fixing some python.  I am trying to calculate a "final results" attribute field.  The field type is numeric, because I want the values to either be a 1 (pass) or 0 (fail).  I have attached 2 variations of the code I have tried, but they both give me errors.  The two fields I am trying to calculate from are both text fields, and the values for both are either "PASS" or "FAIL."

I know that this should be a simple task, but like I said I am very very new to python.  Any help or pointers would be much appreciated.

0 Kudos
10 Replies
MarkAccettulla
New Contributor

Greg,

Thank you, this method also worked

0 Kudos