LoginSignup
0
0

More than 3 years have passed since last update.

初歩的な質問なのですが...

Posted at

初歩的な質問で申し訳ありませんがよければ回答お願いします。

現在、プロを目指す人のためのRuby入門をしているのですが
if分を使うところなどで

status = 'error'
if status != 'ok'
'何か問題があります'
end

ということをしているのですがputsを省略すると出力がされません。
unless文やcase文なども同様に出力されないのですが
どこに問題があるのでしょうか?

初歩的な質問で申し訳ありませんがご教授のほどよろしくお願いいいたします。

0
0
9

Register as a new user and use Qiita more conveniently

  1. You get articles that match your needs
  2. You can efficiently read back useful information
  3. You can use dark theme
What you can do with signing up
0
0