![]() |
Need If statement help!
Hello,
I have a function for displaying a message if certain shipping criteria are met. 1. shipping address isn't blank 2. they have put PO box in their ship to 3. they haven't already selected Parcel Post {if $po_address ne "" and $cart.shippingid ne "51"} this works fine. Now I have a new method of shipping that I have to test for called Mail Innovations. So this is what it needs to test for 1. shipping address isn't blank 2. they have put PO box in their ship to 3. they haven't already selected Parcel Post or Mail Innovations - if they have no need to show warning. I have tried several ways to test for it but they don't seem to be working {$userinfo.s_address} {if $po_address ne "" and ($cart.shippingid ne "122" or $cart.shippingid ne "51")} Can someone tell me what I am doing wrong? Thanks, Randal |
Re: Need If statement help!
Try changing your boolean constructs - your current method of using an "or" conjunction to test for "not equals" condition will not give you desired results.
Change: Code:
Code:
|
Re: Need If statement help!
Thanks that was a big help.
|
All times are GMT -8. The time now is 12:00 AM. |
Powered by vBulletin Version 3.5.4
Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.