. . . a number falls between two numbers? I am wanting to search for a line number in a file and check to see if that line number falls between two values. However, I am having a hard time figuring out the evaluation code. When I grab the line number I want to check and see if that line number falls between 1 and 13. I cant quite get the code right for it to work. Any suggestions on how to do this.
IF (((%LineNumber% >=0) AND (%LineNumber% <=12)) OR ((%LineNumber% >=26) AND (%LineNumber% <=38)))
IF (%LineNumber% = 0 or 1 or 2 or 3 or 4 or 5 or 6 or 7 or 8 or 9 or 10 or 11 or 12 or 26 or 27 or 28...)
I have tried the two above lines, the bottom one seems to work the best, but it is weird, when testing it will pull up line number 19 and the first IF statement (which does not include 19) still works. Very weird.
IF (((%LineNumber% >=0) AND (%LineNumber% <=12)) OR ((%LineNumber% >=26) AND (%LineNumber% <=38)))
IF (%LineNumber% = 0 or 1 or 2 or 3 or 4 or 5 or 6 or 7 or 8 or 9 or 10 or 11 or 12 or 26 or 27 or 28...)
I have tried the two above lines, the bottom one seems to work the best, but it is weird, when testing it will pull up line number 19 and the first IF statement (which does not include 19) still works. Very weird.
Comment