Мне нужна ваша помощь. У меня есть код, который нужно изменить [code]$metMessage = ""; foreach($batches as $batch) { $metMessage .= ' ' . $batch['comp_code'] . ' ' . $batch['description'] . ' ' . number_format($batch['quantity'], 0, '.', '') .' '; } [/code] Что мне нужно: [code]If $batch['quantity'] < 3 then . number_format($batch['quantity'], 2, '.', '') .' else . number_format($batch['quantity'], 0, '.', '') .' [/code] Я не знаю, как добавить это условие