Html using "Or" in condition

Whing Dela Cruz
Whing Dela Cruz used Ask the Experts™
on
Hi experts, how can I correct code below, i want to use "Or" in a condition.

if (fname=="" Or lname=="" Or Age=="")
  {
  alert("something is lacking!")
  return false;
  }
Comment
Watch Question

Do more with

Expert Office
EXPERT OFFICE® is a registered trademark of EXPERTS EXCHANGE®
Sr. System Analyst
Commented:
if ((fname=="") || (lname=="") || (Age==""))
  {
  alert("something is lacking!");
  return false;
  }

Open in new window

You may wish to refer to JavaScript Reference going forward.

-- No points, please!

Author

Commented:
Thanks both of you guys!

Do more with

Expert Office
Submit tech questions to Ask the Experts™ at any time to receive solutions, advice, and new ideas from leading industry professionals.

Start 7-Day Free Trial