Asign variables in conditional