lundi 23 octobre 2017

Can I use two OR/AND in the same time in one statement?

I have this statement

 <?php

    if($item['option_1049'] == 'Ready Property' OR $item['option_1049'] == '现房' AND $item['option_4'] == 'Sale')
         {
                echo _ch($item['option_1002']); echo '&nbsp;'; echo '{lang_psqft}' ;
                echo '<br>';
                echo _ch($item['option_1068']); echo '&nbsp;'; echo _ch($options_prefix_1069); echo _ch($item['option_1069']); echo _ch($options_suffix_1069);

          }

               ?>

but it seems like this is not working?

Because I want to show echo values which has value of ready property and sale I have OR because I'am doing a double language so in this case this if I switch another language still my meet my conditions.

This is posible in this way??

Thanks

Aucun commentaire:

Enregistrer un commentaire