case switch
switch(valor) { case "T": $(".contInputXLeyenda").show(); break; default: alert("asdasd"); }