morphman
06-10-2002, 01:57 PM
Ok, ive been working my way around this for a while now but not i just plain need to learn this. How do i do something like this:
while integer1 < integer 2
do
commands
done
Do i use test or expr? Lets say i read values into two variables "var1" and "var2". How do it compare them in a while statement to see if one is lower than the other? Perhaps someone can give me an examle of the exact syntax? The stinking man pages for test, expr, and while havent helped me at all. Thanks!
--Morphman
while integer1 < integer 2
do
commands
done
Do i use test or expr? Lets say i read values into two variables "var1" and "var2". How do it compare them in a while statement to see if one is lower than the other? Perhaps someone can give me an examle of the exact syntax? The stinking man pages for test, expr, and while havent helped me at all. Thanks!
--Morphman