Log 1944
02/08/2023 2023-08-02 7:59// Get the value of the placeholder #שם משפחה#
$last_name = #שם משפחה#;
// Check if last name contains “לוי”
if (strpos($last_name, “לוי”) !== false) {
return “משפחת לוי”;
}
// Check if last name contains “כהן”
elseif (strpos($last_name, “כהן”) !== false) {
return “משפחת כהן”;
}
// Check if last name contains “יונה”
elseif (strpos($last_name, “יונה”) !== false) {
return “ציפורת”;
}
// Check if last name contains “טלמון”
elseif (strpos($last_name, “טלמון”) !== false) {
return ‘אחלה הורים’;
}
else {
return ‘משפחת ישראלי’;
}