def FindLabel ( [Field1], [Field2] ): Â if float([Field1]) >= 1: Â Â Â return "# " + str([Field1]) + ", " +Â "<CLR red='255'><FNT size = '16'>" + "Field 2 " + str(round(float( [Field2]) , 2)) + "</FNT></CLR>" Â else: Â Â Â return "# " + str([Field1])Â + ", Field 2 " + str(round(float([Field2]) ,2))
FindLabel([Field1],[Field2])
def FindLabel (f1,f2): Â Â Â if f1 >= 1: Â Â Â Â Â Â Â lbl = "# {0}, <CLR red='255'><FNT size='16'> Field 2: {1:.2f}</FNT></CLR>" Â Â Â else: Â Â Â Â Â Â Â lbl = "# {0}, Field 2: {1:.2f}" Â Â Â return lbl.format(f1,f2)
Los miembros registrados pueden publicar, seguir actualizaciones y más. ¿Nuevo aquÃ? RegÃstrate gratis.
Find useful guides, FAQs, and documents to help you navigate and make the most of Esri Community.