def SetIfNotEmpty(dict, attr_name, value):
 if value:
  dict[attr_name] = value

def SetIfNotEmpty ( dict , attr_name , value ) : if value : dict [ attr_name ] = value
if "value" is not empty and non-zero .