I have the following:
var isChecked = $('#htmlEdit').is(":checked");
But I don't really need the variable isChecked and what I want to do is to assign a value to a variable called "action" so that if the test on the right above is true then
var action = "Editing HTML"
if not then
var action = "Editing"
Is there a clean way to do this without just using an if-else?