Hello Moby,
Moby>>I need to check if var2 is between (var2-var1)/2 and (var3-var2)/2 etc.<<
Not sure if I understand fully but...
if(Abs(Var3-Var2)=(Var3-Var2)) then Do whatever
This equation will make sure Var2 is lower than Var 3
Use this equation again with the other variable..
if(Abs(Var3-Var2)=(Var3-Var2)) &&
if(Abs(Var2-Var1)=(Var2-Var1))
Then do something
This equation makes sure Var2 IS lower than Var3 AND
Var2 is greater than Var1
This is written in Psuedo code...but the idea is exactly the same..
I think in PBP it will look like this:
if(Abs(Var3-Var2)=(Var3-Var2))
if(Abs(Var2-Var1)=(Var2-Var1))
Then do something
Endif
Endif
I am at work, I have no way to check the syntax out.
Dwayne
Last edited by Dwayne; - 31st March 2005 at 17:58.
Ability to Fly:
Hurling yourself towards the ground, and missing.
Engineers that Contribute to flying:
Both optimists and pessimists contribute to the society. The optimist invents the aeroplane, the pessimist the parachute
Pilots that are Flying:
Those who know their limitations, and respect the green side of the grass...
Bookmarks