Thread: Ask!
View Single Post
  #1042 (permalink)  
Old 04-08-2008, 02:24 PM
Michel Michel is offline
Senior Member
 
Join Date: Feb 2006
Posts: 546
Michel is on a distinguished road
PHP Code:
if(Condition1)
if(
Condition2)
if(
Condition3)
if(
Condiition4)
if(
Condition5
{
buyvalue=1;

This is the most economical and fastest way to write multiconditional tests.
It's the fastest because if condition1 is not filled, condition 2, 3, ... are not evaluated, which is not the case if you put "&&" operator between them.
So begin with the most likely unfrequent condition.
So this will undoubtfully work.
Now, as you are often asking if something will work, the best is to try, its a good way to learn too.
Cheers.
Reply With Quote