Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
在我最近的任务中,我发现了一些这样的代码:
if false print "a" elsif true print "b" else print "c" end
if else 语句正确吗?是否会被处决?
此代码将始终打印“b”。
一种解释是,这段代码是作为一些实际逻辑的占位符放入的,这些逻辑应该在以后添加。