I have a column line of code to display the data. For some reason, the "if" reads text, not a program
the following line code for kendo ui asp.net mvc
@{
var queryLevel = ViewBag.queryLevel as string;
}
columns.Template(@<text></text>).ClientTemplate(
"<div class=\"text-center\">" +
"if ("+ queryLevel +" == \"Well\") {" +
"<span>Ya</span>" +
"}" +
"<form action=\"/AssetOperationProduction/Update\" method=\"post\" style=\"display:inline\">" +
"<input type=\"hidden\" name=\"Id\" value=\"#= Id #\" />" +
"<button class=\"btn btn-secondary text-white m-1\" type=\"submit\"><i class=\"fa-solid fa-pencil\"></i></button></form>" +
"<form action=\"/AssetOperationProduction/Delete\" method=\"post\" style=\"display:inline\">" +
"<input type=\"hidden\" name=\"Id\" value=\"#= Id #\" />" +
"<button class=\"btn btn-danger text-white m-1\" type=\"submit\"><i class=\"fa-solid fa-trash\"></i> "+ queryLevel +" </button></form>" +
"</div>"
).Width(200);