A
A
Andrello2013-12-22 02:14:05
JavaScript
Andrello, 2013-12-22 02:14:05

Is it possible to write undefined/false to a condition?

I'm trying to write:

if(($scope.correctlogin && $scope.correctemail && $scope.correctpass) !== (undefined && false)) { ... }

It does not work, although it plows separately. Is such a record even possible?

Answer the question

In order to leave comments, you need to log in

1 answer(s)
B
bahek2462774, 2013-12-22
@Andrello

what's stopping you from doing it
??
ps
this expression
returns ONLY undefined

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question