View Single Post
  #6  
Old 11-10-2011, 12:54 PM
cbk1994 cbk1994 is offline
the fake one
cbk1994's Avatar
Join Date: Mar 2003
Location: San Francisco
Posts: 10,718
cbk1994 has a reputation beyond reputecbk1994 has a reputation beyond reputecbk1994 has a reputation beyond reputecbk1994 has a reputation beyond reputecbk1994 has a reputation beyond reputecbk1994 has a reputation beyond reputecbk1994 has a reputation beyond reputecbk1994 has a reputation beyond reputecbk1994 has a reputation beyond reputecbk1994 has a reputation beyond repute
Send a message via AIM to cbk1994
That's a really weird way to write it. Why not

PHP Code:
if (UserPrice.text != "Offer" && (UserPrice.text || UserPrice.text 2000000)) {
  return;

What you're doing right now is difficult to read and it isn't clear how it's supposed to be executed (left-to-right, but parentheses would make it clearer, just like you sometimes use them in arithmetic even if not dictated by order of operations for clarity).
__________________
Reply With Quote