At my workplace, I am tasked with making modifications to an angularjs project. However, I find the code quite complex and challenging to fully comprehend:
app.controller("complementsController", function($scope, $rootScope, $mdSidenav, $timeout, $localStorage, $window) {
$scope.storage = $localStorage;
$scope.arrayCubiert = $scope.storage.cocinaCubiert.split("-");
$scope.tipoCubiert = $scope.arrayCubiert[1];
$scope.return = function() {
$window.history.back()
};
$scope.configurations = [{
logo: "some-logo",
val: 1
}];
"CUE" != $scope.tipoCubiera && "CUF" != $scope.tipoCubiert && "CUS" != $scope.tipoCubiert || $scope.configurations.push({
logo: "fiss-logo",
val: 2
});
"CUE" == $scope.tipoCubiert && $scope.configurations.push({
logo: "grafett-essence",
val: 3
});
$scope.opcionTitle = "EhapeAL", $scope.opcionImg = [ ["EAL.png", "EhapeAL AL"] ];
$scope.opcionBtn = 1, $timeout(function() {
$mdSidenav("sidebar").toggle().then(function() {})
}, 500);
The part that stands out as unclear to me is:
"CUE" != $scope.tipoCubierta && "CUF" != $scope.tipoCubierta && "CUS" != $scope.tipoCubierta || $scope.configuraciones.push({ logo: "fisso-logo", val: 2 }),
I wonder if this is some sort of shorthand conditional statement? If so, how would it be written in a more traditional format?