Question Web Form to Tell How far away something is

Thrawler

New member
Joined
Jan 15, 2012
Messages
4
Programming Experience
3-5
Hey guys,

I'm stuck on a logic question, I have an image that looks something like this;

.....1.....
6........2
5........3
.....4.....

Each number would represent an Image. I need to make something that will have "Current" and "Obtain" the User will select what the Current Number is, and Then Selects which the OBTAIN Number would be, so for example

User has a current Value of 3
User Needs To Obtain a Value of 1

The Command Button would spit out something like "It would take 2 steps to the left to get to 1"

Anyone know how I can obtain this?
 
If I'm understanding what you're after correctly, possibly the easiest way of doing this would be to subtract the smaller number from the larger, then compare that to 7 minus the larger number and take the smallest.

Easy enough to work out whether it's left or right from the value you use.

I think that'll work... granted I've not had coffee ;)
 
Last edited:

Latest posts

Back
Top