I am facing an issue in if statement for below code. I am not able to log into if statement even with correct condition. Is my syntax correct?
String NicotineProduct="Not in the last 5 years"
if (NicotineProduct=="No, Never"||NicotineProduct=="Not in the last 5 years"||NicotineProduct=="Not in the last 3 years")
{
if (rateclass=="Pref Best No Nicotine")
rateclassval=1;
else if (rateclass=="Pref No Nicotine")
rateclassval=2;
else if (rateclass=="Select No Nicotine")
rateclassval=3;
else if (rateclass=="Standard No Nicotine")
rateclassval=4;
}