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