当前位置:网站首页>帆软中使用if else 进行判断-使用标题条件进行判断
帆软中使用if else 进行判断-使用标题条件进行判断
2022-04-23 14:04:00 【黄哈哈~】
我这里的需求是需要在标题中进行判断(年初,中期),这两个来进行判断,在普通报表中进行对标题的设置。
效果:
1、在单元格中插入公式
公式如下:if(versionTypeBefore=1&&versionType=1,“固投项目投资和资金计划 “+ p l a n Y e a r B e f o r e + " ( 年 初 ) − " + planYearBefore+"(年初)-"+ planYearBefore+"(年初)−"+planYear+”(年初)”+“调整汇总表”,if(versionTypeBefore=1&&versionType=3,“固投项目投资和资金计划 “+ p l a n Y e a r B e f o r e + " ( 年 初 ) − " + planYearBefore+"(年初)-"+ planYearBefore+"(年初)−"+planYear+”(中期)”+“调整汇总表”,if(versionTypeBefore=3&&versionType=1,“固投项目投资和资金计划 “+ p l a n Y e a r B e f o r e + " ( 中 期 ) − " + planYearBefore+"(中期)-"+ planYearBefore+"(中期)−"+planYear+”(年初)”+“调整汇总表”,if(versionTypeBefore=3&&versionType=3,“固投项目投资和资金计划 “+ p l a n Y e a r B e f o r e + " ( 中 期 ) − " + planYearBefore+"(中期)-"+ planYearBefore+"(中期)−"+planYear+”(中期)”+“调整汇总表”,))))
重点是最后需要加一个逗号,由于逗号是else的意思,所以结尾处必须加else,不然的话,前面的一个if判断无法执行。这是我遇到的坑,其实就是if-else 是不可分割的。
版权声明
本文为[黄哈哈~]所创,转载请带上原文链接,感谢
https://blog.csdn.net/Miss_HuangT/article/details/109764369
边栏推荐
猜你喜欢
Indoor and outdoor map switching (indoor three-point positioning based on ibeacons)
微信小程序的订阅号开发(消息推送)
mysql新表,自增id长达20位,原因竟是......
Program compilation and debugging learning record
org.apache.parquet.schema.InvalidSchemaException: A group type can not be empty. Parquet does not su
MYSQL 主从同步避坑版教程
linux安装mysql后修改密码
How does redis solve the problems of cache avalanche, cache breakdown and cache penetration
SQL数据库
Quartus prime hardware experimental development (de2-115 board) experiment II function adjustable comprehensive timer design
随机推荐
快捷键(多行)
POI operation word template replaces data and exports word
switch使用(微信小程序)
分页SQL
帆软报表设置单元格填报以及根据值的大小进行排名方法
Quartus prime hardware experimental development (de2-115 board) experiment 1 CPU instruction calculator design
Universal template for scikit learn model construction
理解虚基类、虚函数与纯虚函数的概念(转)
Quartus Prime硬件实验开发(DE2-115板)实验一CPU指令运算器设计
Detailed tutorial on the use of smoke sensor (mq-2) (based on raspberry pie 3B +)
生成随机高质量符合高斯分布的随机数
scikit-learn構建模型的萬能模板
MySQL 修改主数据库
Programming travel function
linux MySQL数据定时dump
读了一篇博客,重新理解闭包整理一下
对List集合进行分页
The latest development of fed digital currency
Indoor and outdoor map switching (indoor three-point positioning based on ibeacons)
Detailed tutorial on the use of setinterval timing function of wechat applet