Problem with return code/subvector

Hi:

my_code <- function(a,b,c)
{d<-(b>=a<=c)
return(d)}

Can you spot what is wrong with this return code? Is subvector d made wrong?

No problem with the return, but you can't make two comparisons at once, you need to use &.