![]() |
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! |
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. |
Thank you for the clarification! :)
Are there general downsides to having more "if" statements? |
Unless you were going to have several thousands. A few here and there won't hurt a thing.
|
All times are GMT. The time now is 01:14 PM. |
Powered by vBulletin® Version 3.8.12 by vBS
Copyright ©2000 - 2025, vBulletin Solutions Inc.
X vBulletin 3.8.12 by vBS Debug Information | |
---|---|
|
|
![]() |
|
Template Usage:
Phrase Groups Available:
|
Included Files:
Hooks Called:
|