If x = 0 Then
y = 0
ElseIf x >= 0 And x < 1 Then
y = 1
ElseIf x > 1 Then
y = y
End If
其实也可以写作:
If x = 0 Then
y = 0
ElseIf x >= 0 And x < 1 Then
y = 1
End If
If x = 0 Then
y = 0
ElseIf x >= 0 And x < 1 Then
y = 1
ElseIf x > 1 Then
y = y
End If
其实也可以写作:
If x = 0 Then
y = 0
ElseIf x >= 0 And x < 1 Then
y = 1
End If