View Single Post
Old 01-02-2011, 11:37 AM  
bl4h
Confirmed User
 
Join Date: Jul 2006
Location: Philadelphia
Posts: 1,282
wtf ? am I missing something here


Code:
if($this->product->productType == "dog" || $this->product->productType == "cat") { }
the two pipes between them means "OR".

|| = OR
&& = AND

I mean I wouldnt do it that way but that answer your question about and and or.
bl4h is offline   Share thread on Digg Share thread on Twitter Share thread on Reddit Share thread on Facebook Reply With Quote