I’m having some trouble where my last else statement never runs even though I know the first if will eventually return false, any ideas?
if ($productType == 'HSweat' || 'T Shirt') {
if ($productType == 'HSweat') {
if (!$queryResult) {
}
} elseif ($productType == 'T Shirt') {
if (!$queryResult) {
}
}
} else {
}
Should be
‘T Shirt’ as a string will always evaluate to True