I have the following code: if($Values['A] == '1') { $Apt->A = TRUE; } if($Values['B'] == '1') { $Apt->B = TRUE; } if($Values['Laundry'] == '1') { $Apt->C = TRUE; } PHP: I want it so that if A and B are selected (if both are 1), then C can be True or False.
I don't know what you mean by "then C can be True or False" but if ($Values['A'] == 1 && $Values['B'] == 1){ //Then both A and B are selected so do what you want here } PHP: