Monthly Archive for November, 2005

Max and Min

I don’t know which is worse: that I haven’t needed a Max() and Min() function yet, or that there isn’t
one built in to LotusScript. @Formula has them.

Function Max(x As Double, y As Double) As Double
 
	If (x > y) Then
		Max = x
	Else
		Max = y
	End If
 
End Function
 
 
Function Min(x As Double, y As Double) As Double
 
	If (x < y) Then
		Min = x
	Else
		Min = y
	End If
 
End Function