djfox Posted November 3, 2007 Share Posted November 3, 2007 I notice that if you do more than two ifs and one else, the coding breaks. Is there an alternative? I want to do something like: if this { do that } if not this, if that { do this instead } if not that, if whatever { do stuff } etc etc. But doing else if more than once doesn`t do the job. Link to comment https://forums.phpfreaks.com/topic/75923-solved-multiple-conditions/ Share on other sites More sharing options...
Orio Posted November 3, 2007 Share Posted November 3, 2007 if(){ ... } elseif(){ ... } elseif(){ ... } ... else{ ... } More info here. Orio. Link to comment https://forums.phpfreaks.com/topic/75923-solved-multiple-conditions/#findComment-384296 Share on other sites More sharing options...
djfox Posted November 3, 2007 Author Share Posted November 3, 2007 Oh ok, it might have just been the way I had them set up. Thanks! Link to comment https://forums.phpfreaks.com/topic/75923-solved-multiple-conditions/#findComment-384298 Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.