Lowest number of two

Started by
1 comment, last by HOOKUPS 24 years ago
I got 2 calculations and the result i want is the lowest result of the two calculations !! how can i do that in Visual basic ?? Edited by - HOOKUPS on 4/5/00 9:41:38 AM
Advertisement
You could try this out :
Dim A,B as integer

If A < B Then
''Result
Else
''Result
End If

But i haven''t tryed it out, it sould work. With a bit of tinkering. From Jono
int LowerValue
int Result1 = DoResultCalc1
if (Result1 < DoResultCalc2)
then LowerValue = Result1
else LowerValue = Result2

I have a macro in C
#define MIN(x,y) ((x) < (y)) ? (x) : (y)


ZoomBoy
A 2D RPG with skills, weapons, and adventure.
See my character editor, Tile editor and diary at
Check out my web-site

This topic is closed to new replies.

Advertisement