'How do you say not equal to in Ruby?
This is a much simpler example of what I'm trying to do in my program but is a similar idea. In an, if statement how do I say not equal to?
Is != correct?
def test
vara = 1
varb = 2
if vara == 1 && varb != 3
puts "correct"
else
puts "false"
end
end
Sources
This article follows the attribution requirements of Stack Overflow and is licensed under CC BY-SA 3.0.
Source: Stack Overflow
| Solution | Source |
|---|
