$num = $num == 1 ? 3 : 1;