What's Here?
- Members: 131,953
- Replies: 470,232
- Topics: 72,881
- Snippets: 2,538
- Tutorials: 664
- Total Online: 1,952
- Members: 79
- Guests: 1,873
Who's Online?
|
Logic functions that should have been in VB and ASP, but were not.
|
Submitted By: Chubber
|
|
|
Rating:
|
|
Views: 429 |
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
|
|
|
Programming
Web Development
Reference Sheets
Bye Bye Ads
Free DIC T-Shirt
Related Sites
Monthly Drawing
Partners
Top Contributors
Top 10 Kudos This Month
|