evaluation of if statement
- Posted by munchr at mac.com Mar 17, 2002
- 381 views
I can't seem to get the following code to work. Should this work like I expect it to, or does it need to be rewritten? Ideally, given a sequence of {1,2,3} it should evaluate false, but given {'b',2,3}, or {'b','B','b'} it should process true when "position" corresponds to the position of the letter in the sequence. But it always processes as false, even when the sequence element has an ascii value between 'Z' and 'A'. for position = 1 to length(input) do if 'Z' >= upper(input[position]) >= 'A' then found = find(upper(input[position]), upper(mapping)) else found = find(input[position], mapping) end if end for am i missing something simple here? James Powell tired and confused at this point