Search Results
Search type | Search syntax |
---|---|
Tags | [tag] |
Exact | "words here" |
Author |
user:1234 user:me (yours) |
Score |
score:3 (3+) score:0 (none) |
Answers |
answers:3 (3+) answers:0 (none) isaccepted:yes hasaccepted:no inquestion:1234 |
Views | views:250 |
Code | code:"if (foo != bar)" |
Sections |
title:apples body:"apples oranges" |
URL | url:"*.example.com" |
Saves | in:saves |
Status |
closed:yes duplicate:no migrated:no wiki:no |
Types |
is:question is:answer |
Exclude |
-[tag] -apples |
For more details on advanced search visit our help page |
the structure of statements in a computer language.
1
vote
1
answer
76
views
ArcGIS - if clause in the field editor with python
if "dB1" or "dB2" have an entry of "0" I want to calculate: "dB1" + "dB2"
if neither "dB1" nor "dB2" have an entry of "0" I want to calculate: 10*log(10^(0,1*"dB1")+10*(0,1*dB2))
I struggle with the syntax … Can someone give me the code as I theoretically know how it should be done but can't work around the syntax in python... …
2
votes
3
answers
689
views
Using if else syntax in field calculator with Python?
I am struggling with syntax and if/else structure... …
2
votes
1
answer
109
views
ArcGIS Field Editor if/else syntax with python
+ 2.25
But I get the Error: 000539 SyntaxError, invalid syntax (, line 1)
Can someone tell me the mistake in my code? …