The Arcive of Official vBulletin Modifications Site.It is not a VB3 engine, just a parsed copy! |
|
#1
|
|||
|
|||
Question about if statements
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! |
#2
|
|||
|
|||
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. |
#3
|
|||
|
|||
Thank you for the clarification!
Are there general downsides to having more "if" statements? |
#4
|
||||
|
||||
Unless you were going to have several thousands. A few here and there won't hurt a thing.
|
|
|
X vBulletin 3.8.12 by vBS Debug Information | |
---|---|
|
|
More Information | |
Template Usage:
Phrase Groups Available:
|
Included Files:
Hooks Called:
|