
UNSOLVED
if statement with OR
Hi,
I'm trying to get if statement to compare against mutiple strings in one statement but it is failing for some reason. (Verified the statement to be working seperately without using || )
deviceObj = object(eventObj->OccurredOn);
if (!deviceObj->isNull()){
if (deviceObj->PrimaryOwnerContact == "P2" || deviceObj->PrimaryOwnerContact == "P2test " ){
eventObj->Severity = 2;
eventObj->changed();
}
although the following works fine
deviceObj = object(eventObj->OccurredOn);
if (!deviceObj->isNull()){
if (deviceObj->PrimaryOwnerContact == "P2" ){
eventObj->Severity = 2;
eventObj->changed();
}
any suggestion?
Responses (0)
Solutions (0)
