We help IT Professionals succeed at work.

Html using "Or" in condition

Whing Dela Cruz
on
140 Views
Last Modified: 2017-04-10
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

Sr. System Analyst
CERTIFIED EXPERT
Commented:
This problem has been solved!
(Unlock this solution with a 7-day Free Trial)
UNLOCK SOLUTION
Nitin SontakkeDeveloper
CERTIFIED EXPERT
Commented:
This problem has been solved!
(Unlock this solution with a 7-day Free Trial)
UNLOCK SOLUTION

Author

Commented:
Thanks both of you guys!