Determining if variables (integers) are greater or less than 0 Hobbyist here. I think my case/when logic needs to be cleaned up a bit. I'd also appreciate critique on the other parts...but I'm more interested in cleaning up the case/when statements...

puts "please assign an integer to x:"
x = gets.chomp.to_i

if (x &gt; 0)
  value_of_x = true
else
  value_of_x = false
end

puts "now please assign an integer to y:"
y = gets.chomp.to_i

if (y &gt; 0)
  value_of_y = true
else
  value_of_y = false
end

case
when (value_of_x == true) &amp;&amp; (value_of_y == true)
  puts "two variables are &gt; 0"
when ((value_of_x == true) &amp;&amp; (value_of_y == false)) || ((value_of_x == false) &amp;&amp; (value_of_y == true))
  puts "at least one variable is &gt; 0"
else
  puts "no variables are &gt; 0"
end
The following will simplify your boolean logic, remove repetition in your input processing, and better express what you're really doing: 

puts "please assign an integer to x:"
x = gets.chomp.to_i

puts "now please assign an integer to y:"
y = gets.chomp.to_i

num_positive = (x &gt; 0 ? 1 : 0) + (y &gt; 0 ? 1 : 0)

case num_positive
when 2
  puts "two variables are &gt; 0"
when 1
  puts "at least one variable is &gt; 0"
else
  puts "no variables are &gt; 0"
end