First off, let me say I don't know Ruby. Don't really wanna learn but our last IT guy remade our website in Ruby, totally screwing us since not many people use it, and now he's gone and since I'm the only one around here that knows anything (PHP/MySQL) it's kinda my job to maintain it where possible. So, I should learn a little something...

Recently we had another IT company remake a page that was breaking HTML emails in Outlook and I've started to recognize a little of how it works.

So I make this change to the same page:

Code:
<% if web_set.reorder_number != '' && web_order.upload_method == 'No file will be sent.' %>
ReOrder# <%= web_set.reorder_number %>
<% end %>
But it wouldn't work. I double checked that my comparisons were correct (!= & ==) and also that && was the AND operator like in PHP. But no luck. But, when I broke it into two separate IFs it worked:

Code:
<% if web_set.reorder_number != '' %>
<% if web_order.upload_method == 'No file will be sent.' %>
ReOrder# <%= web_set.reorder_number %>
<% end %>
<% end %>
I'm wondering if I had a typo in the first one that I didn't duplicate when I made the two IF version? I know the variables are correct because I copied/pasted them from elsewhere on the same page.

Is the first one correct or why not?

Thanks,

Mike