How can I put up a condition for the string entered in input field like if userName equals to 'xyz' then swal("welcome!") else swal("better next time")? So far I have my code given below.
> swal({
title: "Proceeding...",
content: {
element: "input",
attributes: {
placeholder: "Type up your userName",
type: "userName",
},
},
});