I am fairly new to JS and I realize that the following might be some sort of shorthand notation, but I have not seen something like this before and therefore am not sure what this statement is saying. Can someone please explain it to me?
if ($scope.userInformationData) {
$scope.callReport.Created_In_S1_App__c = ($scope.userInformationData.media == 'SALESFORCE1' ? true : false);
} else {
$scope.callReport.Created_In_S1_App__c = true;
}
Having trouble understanding this if/else block (with the ? : notation) Thanks for the help and I appreciate the explanation