Hi I am trying to compare a cell value in the spreadhseet with a string as given below.
workbook = Spreadsheet::ParseExcel.parse(name)
#Get the first worksheet
worksheet = workbook.worksheet(0)
puts worksheet.cell(4,0).to_s
puts "SecurityKey".to_s
puts "SecurityKey".to_s.eql? worksheet.cell(4,0).to_s
I tried == , .eq? and all other possible string comparison techniques but it always results as false even when the two strings are the same. Can u help me out??
Thanks in advance
Try using value or text
Edit
Avoid using parseexcel. Try something like