Javascript – ifelse for multiple combinations for two variables
I have two variables like below: var a = "active" //[two possible value active/inactive] var b = "inactive" //[three possible values active/locked/disabled] var outcome = "" if(a=="active" && b=="active") outcome = "a"; elif(a=="active" && b=="locked") outcome = "b" elif(a=="active" &&…