Posts: 655
Threads: 49
Joined: Sep 2007
Reputation:
0
I kinda' forgot this, but with Pickupid & Dialogid, is it better to do if( pickupid ) else if ( pickupid ) or just if ( pickupid ) then if ( pickupid ) ?
What's more efficient, laggyless and so on ?
Posts: 655
Threads: 49
Joined: Sep 2007
Reputation:
0
Can't use "switch", i'm stuck between "if" and "else if" .
Posts: 241
Threads: 22
Joined: May 2011
Reputation:
0
if(pickupid)
else if(pickupid)
is more efficent.
But if you can, you should
switch(pickupid)
Posts: 2,726
Threads: 85
Joined: Jul 2010
Reputation:
0
Nothing is more efficient as far as I know. They both work and "else" is kinda useless here.
But, if you are that concerned about the correctness, use else if. I don't see how "if" and then "if" can fail though.
By the way: I don't see how you can be stuck with "if". o_O
Posts: 1,426
Threads: 56
Joined: Dec 2010
Reputation:
0
I always use just "if" "if" "if". I don't see the point of "if" "else if" "else if"
Posts: 966
Threads: 5
Joined: Jul 2011
Reputation:
0
Dialog IDs are perfectly static though so the performance there can be improved by using switch!