wkilc Posted January 13, 2011 Share Posted January 13, 2011 I know this works: if($Authorized == "Declined") { echo "Didn't work"; } else { echo "Success"; } ?> What if I wanted it to echo "Didn't work" if $Authorized == "Declined" OR if the string is empty, i.e. $Authorized == "" Is this it? if($Authorized == "Declined") { echo "Didn't work"; } [elseif ($Authorized == "") { echo "Still didn't work"; }] } else { echo "Success"; } ?> Thanks. Link to comment https://forums.phpfreaks.com/topic/224374-simple-elseif/ Share on other sites More sharing options...
Pikachu2000 Posted January 14, 2011 Share Posted January 14, 2011 if($Authorized == "Declined" || empty($Authorized) ) { Link to comment https://forums.phpfreaks.com/topic/224374-simple-elseif/#findComment-1159127 Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.