I would like to compare two strings and decide if they are not equal. I have the code below, but it seems that it is not returning what I want, is this correct?
if ((current.request.requested_for != reviewer) && (current.request.requested_for != approver)) {
return 'Yes';
}
return 'No';
}
Here reviewer and approver, are some strings that I have declared in lines prior to the if conditions. Basically, my question here is to know if I should use != to check if 2 strings are not equal.
Thanks