Ruby range: operators in case statement

前端 未结 4 366
萌比男神i
萌比男神i 2021-01-18 06:29

I wanted to check if my_number was in a certain range, including the higher Value.

In an IF Statement I\'d simply use \"x > 100 && x <= 500\"

But

4条回答
提交回复
热议问题