当前位置:网站首页>帆软中使用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
边栏推荐
- poi操作word模板替换数据并且导出word
- Quartus Prime硬件实验开发(DE2-115板)实验二功能可调综合计时器设计
- Chapter I review of e-commerce spike products
- 收藏博客贴
- org.apache.parquet.schema.InvalidSchemaException: A group type can not be empty. Parquet does not su
- 编程旅行之函数
- 关于stream流,浅记一下------
- 力扣刷题 101. 对称二叉树
- Pytorch 经典卷积神经网络 LeNet
- 理解虚基类、虚函数与纯虚函数的概念(转)
猜你喜欢

The latest development of fed digital currency

Neuron and neural network

Nacos+AspnetCore+Ocelot实战编码

scikit-learn构建模型的万能模板

快速安装mongodb

修改ddt生成的测试用例名称

Windos中安装labellmg教程

Detailed tutorial on the use of setinterval timing function of wechat applet

mysql新表,自增id长达20位,原因竟是......

Chapter I review of e-commerce spike products
随机推荐
Three point positioning based on ibeacons (wechat applet)
全局变量能否放在头文件中定义
使用itextpdf实现截取pdf文档第几页到第几页,进行分片
Go语言 RPC通讯
CDH cluster integration Phoenix based on CM management
JS 力扣刷题 103. 二叉树的锯齿形层序遍历
微信小程序通过低功耗蓝牙设备进行定位及测距(二)
pthread_self()为何重复了
Spark入门基本操作
Chapter I review of e-commerce spike products
smart-doc + torna生成接口文档
Logging模块
Kettle -- control parsing
RobotFramework 之 公共变量
Universal template for scikit learn model construction
PyMySQL
Cdh6 based on CM management 3.2 cluster integration atlas 2 one
修改ddt生成的测试用例名称
nodejs通过require读取本地json文件出现Unexpected token / in JSON at position
关于密匙传递的安全性和数字签名