Hello all I am working on a problem that I am using radios to set conditions then trying to add values for an equation to return back to form;
My code looks like this to determine what value to set my data member to but I am getting 0 instead of defined amounts
public void SetShipSurcharge(double _shSurCharge)
{
if (shDesintation != "AK-ALASKA" || shDesintation != "HI-HAWAII")
shSurCharge = 0;
else if (shOption == "Standard Shipping")
shSurCharge = STAND_SURCHARGE;
else if (shOption == "Express Shipping")
shSurCharge = EXPRESS_SURCHARGE;
else
shSurCharge = SAMEDAY_SURCHARGE;
} //End SetShipSurcharge
any help would be great thanks
My code looks like this to determine what value to set my data member to but I am getting 0 instead of defined amounts
public void SetShipSurcharge(double _shSurCharge)
{
if (shDesintation != "AK-ALASKA" || shDesintation != "HI-HAWAII")
shSurCharge = 0;
else if (shOption == "Standard Shipping")
shSurCharge = STAND_SURCHARGE;
else if (shOption == "Express Shipping")
shSurCharge = EXPRESS_SURCHARGE;
else
shSurCharge = SAMEDAY_SURCHARGE;
} //End SetShipSurcharge
any help would be great thanks