当前位置:网站首页>帆软中使用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
边栏推荐
猜你喜欢
Check in system based on ibeacons
联想产品经理林林:天津当地网络运营商网络故障 ZUI系统后台服务器暂时无法正常工作
Choreographer full resolution
Ptorch classical convolutional neural network lenet
使用Postman进行Mock测试
室内外地图切换(室内基于ibeacons三点定位)
RobotFramework 之 项目框架
Chapter I review of e-commerce spike products
Wechat applet obtains login user information, openid and access_ token
Taobao released the baby prompt "your consumer protection deposit is insufficient, and the expiration protection has been started"
随机推荐
org.apache.parquet.schema.InvalidSchemaException: A group type can not be empty. Parquet does not su
Wechat applet obtains login user information, openid and access_ token
微信小程序与低功耗蓝牙通信-往硬件端发送数据(三)
联想产品经理林林:天津当地网络运营商网络故障 ZUI系统后台服务器暂时无法正常工作
基础知识学习记录
Jacob print word
JS 力扣刷题 103. 二叉树的锯齿形层序遍历
全局变量能否放在头文件中定义
Call wechat customer service applet
基於CM管理的CDH集群集成Phoenix
Go语言 RPC通讯
scikit-learn構建模型的萬能模板
linux安装mysql后修改密码
centOS下mysql主从配置
Ptorch classical convolutional neural network lenet
Quartus prime hardware experimental development (de2-115 board) experiment 1 CPU instruction calculator design
Record a strange bug: component copy after cache component jump
理解虚基类、虚函数与纯虚函数的概念(转)
Android篇:2019初中级Android开发社招面试解答(中
Logging模块