if conditional include statement in Rails

products = ("Apple","Banana","Orange") .to_a

1. product_report = (products.include? "Grape") ? "exists" : "not exists"
   not exists
2. product_report = (products.include? "Apple") ?  7+2 : 7-2
   9

Comments