I have two scopes $scope.job and $scope.jobs
I have var job;
If $scope.job is undefined I would like $scope.jobs to work under job so it would be var job = $scope.jobs but if $scope.job is defined I want to write it to that variable too.
if ( $scope.job ) {
    var job = $scope.job; 
} else {
    var job = $scope.jobs; 
}
But in shorthand
 
     
     
     
    