Double Binary

Got a LiveCode personal license? Are you a beginner, hobbyist or educator that's new to LiveCode? This forum is the place to go for help getting started. Welcome!

Moderators: FourthWorld, heatherlaine, Klaus, kevinmiller

Post Reply
RossG
Posts: 247
Joined: Thu Jan 08, 2015 7:38 am

Double Binary

Post 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?
Is age an excuse? Eighty-four and counting.
Programming powered by coffee.
bn
VIP Livecode Opensource Backer
VIP Livecode Opensource Backer
Posts: 4219
Joined: Sun Jan 07, 2007 9:12 pm

Re: Double Binary

Post 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
RossG
Posts: 247
Joined: Thu Jan 08, 2015 7:38 am

Re: Double Binary

Post 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.
Is age an excuse? Eighty-four and counting.
Programming powered by coffee.
Post Reply