AND and OR in if statement

Francis Clavette clavette.francis at
Wed May 25 01:14:59 UTC 2016

I’d like to be able to use AND for && and OR for || in conditional statements in a future version of ECMAScript. It’s a feature I’ve always been wanting since transitioning from PHP. It’s also much cleaner : 

if ($scope.newSourceModal.isShown() && $scope.newsource.type == "book" && (!$scope.insertingFromScan || $scope.ok))


if ($scope.newSourceModal.isShown() AND $scope.newsource.type == "book" AND (!$scope.insertingFromScan OR $scope.ok))

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <>

More information about the es-discuss mailing list