eldan88 Posted May 27, 2013 Share Posted May 27, 2013 Hey, I am trying create a condition, if the constant is not !=NULL or if it is !=0 then display the constant. However my php editor is showing me an error on that line. Below my code. Thanks! if(STORE_MIN_DELIVERY !=0 && !=NULL ){ } Quote Link to comment https://forums.phpfreaks.com/topic/278449-question-about-an-if-condition/ Share on other sites More sharing options...
Solution Barand Posted May 27, 2013 Solution Share Posted May 27, 2013 if(STORE_MIN_DELIVERY !=0 && STORE_MIN_DELIVERY !=NULL ) Quote Link to comment https://forums.phpfreaks.com/topic/278449-question-about-an-if-condition/#findComment-1432627 Share on other sites More sharing options...
eldan88 Posted May 28, 2013 Author Share Posted May 28, 2013 if(STORE_MIN_DELIVERY !=0 && STORE_MIN_DELIVERY !=NULL ) Thanks Barand! Quote Link to comment https://forums.phpfreaks.com/topic/278449-question-about-an-if-condition/#findComment-1432637 Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.