<script>
    function check() {
        var Not = false;
        //Doing something...
        if (Not) {
            @ViewBag.IsTrue = false;  //This line appears like    = false
        }
        else{
            @ViewBag.IsTrue = true; //This line appears like    = false too
        }
</script>

Can somebody explain me what is happening? I'm using .NET 4.6 and MVC 5. Thanks in advance!

Related posts

Recent Viewed