function onEdit(e) {
try {
const sheet = e.range.getSheet();
const col = e.range.getColumn();
if (
sheet.getName() === 'Sheet3' &&
(col === 15 || col === 16) &&
(e.value === 'TRUE' || e.value === 'ИСТИНА')
) {
const vals = [[col === 15, col === 16]];
sheet.getRange(e.range.getRow(), 15, 1, 2).setValues(vals);
}
} catch (err) {
SpreadsheetApp.getActive().toast(err);
}
}