Between2int and Between2intinc

Checks if number between two numbers, with or without considering those numbers.
Numbers are expected to be integers, but can be anything

CodeFunctionName
What is this?

Public

Tested

Original Work
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

Num, BetweenMin, BetweenMax
Num, BetweenMin, BetweenMax

Views 737

Downloads 64

CodeID
DB ID

ANmarAmdeen
618
Attachments
Revisions

v1.0

Saturday
March
23
2024