How do you make the computer find if a letter is before or after another letter?
Offline
ImagineIt wrote:
How do you make the computer find if a letter is before or after another letter?
Umm...IDK...I don't think you can.
Offline
You can check down the word to find the first letter, then assign it's position to a number. Then you check down the letters to find the second letter, assign it it's own number, take the difference, and if it's positive the letter is before, if it's negative it's after.
Wait, give me a second to write a script.
Here, this isn't instantaneous, but it works:
Last edited by Kileymeister (2011-06-12 19:08:40)
Offline
Kileymeister wrote:
You can check down the word to find the first letter, then assign it's position to a number. Then you check down the letters to find the second letter, assign it it's own number, take the difference, and if it's positive the letter is before, if it's negative it's after.
Wait, give me a second to write a script.
Here, this isn't instantaneous, but it works:
http://i51.tinypic.com/20ue5cn.gif
Put that in BYOB, set it to atomic (turbo, in blocks) and let 'er rip!
Offline
owetre18 wrote:
Kileymeister wrote:
You can check down the word to find the first letter, then assign it's position to a number. Then you check down the letters to find the second letter, assign it it's own number, take the difference, and if it's positive the letter is before, if it's negative it's after.
Wait, give me a second to write a script.
Here, this isn't instantaneous, but it works:
=]http://i51.tinypic.com/20ue5cn.gifPut that in BYOB, set it to atomic (turbo, in blocks) and let 'er rip!
You don't need to use BYOB for that '
Offline