Code: Select all
If gCount is an odd number then 
    do A
else
    do B
end if
Cheers,
Adrian
Moderators: FourthWorld, heatherlaine, Klaus, kevinmiller, robinmiller
Code: Select all
If gCount is an odd number then 
    do A
else
    do B
end if
Code: Select all
if gCount mod 2 is 0 then
    --do something for an even number
else
    -- do something for an odd number
endif
Code: Select all
function even theNr
  return theNr mod 2 is 0
end even
function odd theNr
  return theNr mod 2 is not 0
end odd