简单教程
提交运行
代码编辑器:
@{var price=20;} <!DOCTYPE html> <meta charset="utf-8"/> @if (price>30) { <p>The price is too high.</p> } else { <p>The price is OK.</p> }
运行结果: