I'd like to execute a piece of JavaScript when a certain condition is true in my view model:
<script type="text/javascript">
@if (Model.Employees.Count > 1)
{
executeJsfunction();
}
</script>
This code doesn't compile, how should I do this?