VB 实例 Select 条件

vb 实例

select 条件

@code
dim weekday=datetime.now.dayofweek
dim day=weekday.tostring()
dim message=""
end code
<html>
<body>
@select case day
case "monday"
    message="this is the first weekday."
case "thursday"
    message="only one day before weekend."
case "friday"
    message="tomorrow is weekend!"
case else
    message="today is " & day
end select
<p>@message</p>
</body>
</html>

相关文章