当前位置:网站首页>帆软中使用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
边栏推荐
- Record a strange bug: component copy after cache component jump
- Go语言 RPC通讯
- leetcode--380. O (1) time insertion, deletion and acquisition of random elements
- PATH环境变量
- 9月8日,临去松山湖的前夜
- 多重继承虚基类习题
- Un modèle universel pour la construction d'un modèle d'apprentissage scikit
- json反序列化匿名数组/对象
- Universal template for scikit learn model construction
- RobotFramework 之 用例标签机制
猜你喜欢
Taobao released the baby prompt "your consumer protection deposit is insufficient, and the expiration protection has been started"
Basic knowledge learning record
Strange bug of cnpm
Cdh6 based on CM management 3.2 cluster integration atlas 2 one
Check in system based on ibeacons
Three point positioning based on ibeacons (wechat applet)
Quartus prime hardware experimental development (de2-115 board) experiment II function adjustable comprehensive timer design
使用itextpdf实现截取pdf文档第几页到第几页,进行分片
smart-doc + torna生成接口文档
Quartus prime hardware experimental development (de2-115 board) experiment 1 CPU instruction calculator design
随机推荐
使用itextpdf实现截取pdf文档第几页到第几页,进行分片
mysql新表,自增id长达20位,原因竟是......
JS 力扣刷题 103. 二叉树的锯齿形层序遍历
RobotFramework 之 用例执行
websocket
理解虚基类、虚函数与纯虚函数的概念(转)
json反序列化匿名数组/对象
Use of WiFi module based on wechat applet
容差分析相关的计算公式
基于ibeacons签到系统
微信小程序与低功耗蓝牙通信-接受硬件端发送来的数据(四)
联想产品经理林林:天津当地网络运营商网络故障 ZUI系统后台服务器暂时无法正常工作
New关键字的学习和总结
Jmeter安装教程以及我遇到的问题的解决办法
力扣刷题 101. 对称二叉树
nodejs通过require读取本地json文件出现Unexpected token / in JSON at position
BUG_me
JS force deduction brush question 103 Zigzag sequence traversal of binary tree
基于ibeacons三点定位(微信小程序)
Autumn recruitment in 2021, salary ranking No