AnsweredAssumed Answered

please help: label expression

Question asked by npj0003 on Jul 22, 2015
Latest reply on Jul 22, 2015 by npj0003

Hi Everyone,

I need some help. I am not a python expert nor a programmer but I am a GIS user. Trying to learn python scripting for now.

This is what I am trying to make an expression in python:

 

1.JPG

I try this:

 

def FindLabel ( [POLY_ID], [EV_CODE], [STAND_CONDITION_CODE] ):

  return "<BOL><UND>" + "  " +  [POLY_ID] + "   " +  "</UND></BOL>" + '\n' + [EV_CODE] + "-" + [STAND_CONDITION_CODE]

 

And I want,

if [EV_CODE] and  [STAND_CONDITION_CODE] is None:

  return "?"

 

Is anyone can help me create an expression for this label?

Your responses is highly appreciated.

 

Thank you,

nidz

Outcomes