Page 1 of 1

Double Binary

Posted: Fri May 06, 2016 8:30 pm
by RossG
This gives a "Double Binary Operator" error.

Code: Select all

put the number of lines in field RandomNumbers into lineCount
      repeat with x = 1 to lineCount
      if item 1 of line x of field RandomNumbers is > lowVar then 
         if item 1 of line x of field RandomNumbers is < highVar then 
           put line x of field RandomNumbers & CR after field FirstFilter
         end if
      end if
   end repeat
What's the fix?

Re: Double Binary

Posted: Fri May 06, 2016 8:41 pm
by bn
Hi Ross,
This gives a "Double Binary Operator" error.
if item 1 of line x of field RandomNumbers is > lowVar then
if item 1 of line x of field RandomNumbers is < highVar then
try to take "is" out.

Code: Select all

if item 1 of line x of field RandomNumbers i > lowVar then 
the same for the other case

Kind regards
Bernd

Re: Double Binary

Posted: Fri May 06, 2016 8:48 pm
by RossG
Isn't is strange that after posting a problem
the solution springs to mind within five minutes?

Still it's reassuring to have a second opinion.