PDA

View Full Version : Question about if statements


FrankR310
05-08-2006, 09:09 PM
I see that many of the template modifications use "if" statements. eg. "if" a user is part of user group "x" then do "y".

My question is do such statements generate additional queries to the database? I know barely enough to know additional queries arent good but not sure what triggers it. :cross-eyed:

Thanks in advance!

Hellcat
05-08-2006, 09:55 PM
No.
The <if ...> tags themself trigger no additional database queries, they only use/access data and variables already present st the time when they are processed.

FrankR310
05-08-2006, 10:19 PM
Thank you for the clarification! :)

Are there general downsides to having more "if" statements?

Zachery
05-08-2006, 10:24 PM
Unless you were going to have several thousands. A few here and there won't hurt a thing.