ruby check what is bool | Sololearn: Learn to code for FREE!

+1

ruby check what is bool

How can you check if a boolean in ruby is true or false?

8/27/2018 7:36:58 PM

troyan

6 Answers

New Answer

+1

yes but if I return the value from a method, I cant use == because it always returns false

+1

troyan well if you're returning a boolean then there's no need to check if it's true or false, linking your code could help

+1

I already made it with variable scope. I posted it yesterday before that idea came to mind.

+1

you can see it

0

use the '==' operator

0

Can u tell me your real name