AnsweredAssumed Answered

Conditional labelling question

Question asked by MattSmith42 on Feb 11, 2013
Latest reply on Feb 11, 2013 by MattSmith42
Hi,

I'm trying to label by a text field fName but suppress labels based on 2 (or more) values.

ATM my code looks like this:

def FindLabel ( [fName] ):    if ([fName]) = "Roundabout":    if ([fName]) = "Track":       return ""    else:       return [fName]


but this is the first thing I've attempted using Python, but I don't want to be defeated!! :)

It's throwing an error that states:

Error 0 on line 0.
Syntax Error: invalid syntax (<string>, line 2).

Any help appreciated!

Outcomes