Posso scrivere così?

if(nomevariabile > 760 | | nomevariabile < 770)
{
istruzione
}
else
{
istruzione
}