if语句有多个选项 [英] if Statement with multiple options
本文介绍了if语句有多个选项的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
我想知道有没有办法缩短这个IF声明:
Hi,
I''m wondering is there a way to shorten this IF statement:
展开 | 选择 | Wrap | 行号
推荐答案
不,没有。
确定。非常感谢
< digress>
你知道,我很惊讶一种语言并没有像这样发展。我记得,哦,这么多年前,当我第一次开始在QBasic编程时,我试着做同样的事情。我的第一个if语句是...... ...
<digress>
You know, I''m surprised a language hasn''t developed something like this. I remember, oh so many years ago, when I first started programming in QBasic I tried to do that exact same thing. My first if statement was something along the lines of...
展开 | 选择 | Wrap | 行号
这篇关于if语句有多个选项的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文