I have 5 numbers that are always changing, is there an easy way to tell which is the smallest?
var1="110"
var2="154"
var3="100"
var4="160"
var5="130"
this is just an example, the #'s will always be changing, the way I'm doing it now sucks, so much code for such a simple thing, there got to be an easier way
if var1 > var2 the
smallest=var2
else
smallest=var1
end if
if var3 > var4 the
smallest=var4
else
smallest=var3
end if
and so on...
var1="110"
var2="154"
var3="100"
var4="160"
var5="130"
this is just an example, the #'s will always be changing, the way I'm doing it now sucks, so much code for such a simple thing, there got to be an easier way
if var1 > var2 the
smallest=var2
else
smallest=var1
end if
if var3 > var4 the
smallest=var4
else
smallest=var3
end if
and so on...