ok, it must mean
if(menu.flags == VISIBLE)
{...}

sorry for that stupid question