在idesktop 10i中看到有更新列这个功能,能否根据两个字段进行计算出新的字段的值,可以实现以下逻辑吗?
if floor <= 2:
if area <= 100:
return '1_1'
elif area <= 300:
return '1_2'
elif area <= 600:
return '1_3'
else:
return '1_4'
elif floor == 3:
return '2_3'
elif floor == 4:
return '2_4'
elif floor == 5:
return '2_5'
elif floor == 6:
return '2_6'
elif floor == 7:
return '2_7'
elif floor == 8:
if area <= 300:
return '2_8_1'
else:
return '2_8_2'
elif floor == 9:
return '2_9'
else:
return '3_x'