Re: First letter of dir() result
- Posted by petelomax Jan 23, 2019
- 1032 views
alrobnett said...
if language_files[language_nmbr][D_NAME] < 'A'
atoms are always less that sequences, and 'A' is an atom.
Logically, at least, if you had said <"A" (or >="A") instead, things might have worked out better.
However, another problem on OE (not on phix) is that you cannot use < (or >=) on non-equal length sequences, and when they are equal-length, you get a (nested) sequence of true/false which cannot be used in a if-test. Instead you must code:
if compare(language_files[language_nmbr][D_NAME],"A")<0 then
Pete