当前位置:网站首页>帆软中使用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
边栏推荐
- mysql新表,自增id长达20位,原因竟是......
- Quartus Prime硬件实验开发(DE2-115板)实验一CPU指令运算器设计
- 1256:献给阿尔吉侬的花束
- nodejs通过require读取本地json文件出现Unexpected token / in JSON at position
- Detailed tutorial on the use of smoke sensor (mq-2) (based on raspberry pie 3B +)
- Quartus prime hardware experimental development (de2-115 board) experiment 1 CPU instruction calculator design
- _模_板_
- 快捷键(多行)
- Use of WiFi module based on wechat applet
- 力扣刷题 101. 对称二叉树
猜你喜欢
随机推荐
Neuron and neural network
POI operation word template replaces data and exports word
Decimal 格式化小数位/DateTime 转换处理
微信小程序与低功耗蓝牙通信-接受硬件端发送来的数据(四)
Choreographer full resolution
BUG_me
百度图片识别自定义实现(替代AipOcr)
Pytorch 经典卷积神经网络 LeNet
Logging模块
centOS下mysql主从配置
Nacos+AspnetCore+Ocelot实战编码
Kettle -- control parsing
Analysis and understanding of atomicintegerarray source code
网站_收藏
微信小程序获取登录用户信息、openid和access_token
可否把模板的头文件和源文件分开编译
json反序列化匿名数组/对象
mysql新表,自增id长达20位,原因竟是......
Expression「Func「TSource, object」」 转Expression「Func「TSource, object」」[]
request模块







