Guest Posted November 30, 2005 Share Posted November 30, 2005 Hello all, I am tring to make this code work. if ['fedex_track_num'] and ['ups_track_num'] and ['usps_track_num'] are ALL null echo the text... Below is a little code snipet form the page that would print the text if one was null but I can't figure out how to make it work with three items to check? <tr> <?php if ($order->info['fedex_track_num'] == NULL) { echo TEXT_NO_TRACKING_AVAILABLE;?></tr> <?php } else{?> <tr> <td><?php echo tep_draw_separator('pixel_trans.gif', '100%', '1'); ?></td> </tr> <?php } ?> Thanks Adam Young Young's gifts Quote Link to comment Share on other sites More sharing options...
atdiehm Posted November 30, 2005 Share Posted November 30, 2005 <tr> <?php if ($order->info['fedex_track_num'] == NULL && $order->info['ups_track_num'] == NULL && $order->info['usps_track_num'] == NULL) { echo TEXT_NO_TRACKING_AVAILABLE;?></tr> <?php } else{?> <tr> <td><?php echo tep_draw_separator('pixel_trans.gif', '100%', '1'); ?></td> </tr> <?php } ?> Thanks Quote Link to comment Share on other sites More sharing options...
Guest Posted November 30, 2005 Share Posted November 30, 2005 Thanks Your coding worked great!!! I had tried some thing like that but dident have the quotes in the correct logical flow... Thanks Adam Quote Link to comment 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.