@{var price=20;}
<html>
<body>
@if (price>30)
    {
    <p>价格太高了。</p>
    }
    else
    {   
    <p>价格可以接受。</p>
    }

</body>
</html>