' Between2int and Between2intinc (By: ANmarAmdeen on 3/23/2024 2:24:00 PM)
' Attachments (1): _63a29add-49f6-4247-8755-f1d774ee029f.jpeg
' Category: Math | Language: ASP Classic
' FunctionName: Between2int | Between2intinc
' Tags: between, num, number, no, among, less, more, greator, less than, equal, between
' Parameters: Num, BetweenMin, BetweenMax | Num, BetweenMin, BetweenMax
' PermLink: http://MyDev.net/?DevID=TM7PS3A7C73
' Description:
' Checks if number between two numbers, with or without considering those numbers.
' Numbers are expected to be integers, but can be anything
'
Function Between2int(Num, BetweenMin, BetweenMax)
' Checks if number between two numbers, without considering those numbers
' Return true or false
Rett = False
If Num > BetweenMin And Num < BetweenMax Then Rett = True
Between2int = Rett
End Function
Function Between2intinc(Num, BetweenMin, BetweenMax)
' Checks if number between two numbers (including those two numbers)
' Return true or false
Rett = False
If Num >= BetweenMin And Num <= BetweenMax Then Rett = True
Between2intinc = Rett
End Function