tell application "Numbers"
activate
tell the first table of the active sheet of document 1
set lavaleur to the value of cell "A2"
if lavaleur > 1 then
set the background color of the cell "b2" to {65535, 0, 65535}
else
set the background color of the cell "b2" to {65535, 65535, 0}
end if
end tell
end tell