I am using the snippet below to highlight table cell values based on the value of that cell. Is it possible to extend the if statement to also look at another set of values from a different table column?
so if value === “my value” AND value2 === “my value2”
var field = argumentsa0], value = argumentsa1],<br /> $ = skuid.$;<br /> <br />if(field.metadata.accessible){ <br /> if(value === "MQL - Customer/W Oppty"){<br /> //RED <br /> field.element.css({'background-color':'#ff0000','min-height':'10px','text-align':'center'});<br /> } <br /> if(value === "Passed to Sales"){<br /> //GREEN <br /> field.element.css({'background-color':'#00cc00','min-height':'10px','text-align':'center'});<br /> } <br /> else if(value === "Qualifying" ){<br /> //YELLOW <br /> field.element.css({'background-color':'#ffff00','min-height':'10px','text-align':'center'});<br /> } <br /> skuid.ui.fieldRenderersRfield.metadata.displaytype]pfield.mode](field,value);<br />}