I would like to write a ternary if statement in javascript where you call a function and if it returns a value other then 0 set the variable to that value otherwise set it to something else ex:
selectedStartDate = (GetURLParameter("StartDate")) ?
GetURLParameter("StartDate") :
$("#start_date").val();
Is there a way to get rid of the double function call?