What's Here?
- Members: 300,369
- Replies: 825,904
- Topics: 137,438
- Snippets: 4,419
- Tutorials: 1,147
- Total Online: 1,443
- Members: 105
- Guests: 1,338
|
Logic functions that should have been in VB and ASP, but were not.
|
Submitted By: Chubber
|
|
|
Rating:
|
|
Views: 932 |
Language: ASP
|
|
Last Modified: June 12, 2007 |
Snippet
Function IIf(TheBoolean, TruePart, FalsePart)
If TheBoolean Then
IIf = TruePart
Else
IIf = FalsePart
End If
End Function
''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''
Function Min(One, Two)
If One > Two Then
Min = Two
Else
Min = One
End If
End Function
''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''
Function Max(One, Two)
If One < Two Then
Max = Two
Else
Max = One
End If
End Function
''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''
Function Floor(InVal)
If InVal > 0 Then
Floor = Int(InVal)
Else
Floor = Int(InVal) - 1
End If
End Function
Copy & Paste
|
|
|
|