Which comes first, {conditionals} or {embeds}
Posted: 18 April 2008 08:16 PM   [ Ignore ]  
Grad Student
Avatar
Rank
Total Posts:  77
Joined  05-10-2006

Just wondering which are parsed first, {conditionals} or {embeds}.

I’d like to embed Template A {if segment_2 == “foo”}
and Template B {if segment_2 == “bar”}

Make sense?

Profile
 
 
Posted: 18 April 2008 09:40 PM   [ Ignore ]   [ # 1 ]  
Research Scientist
Avatar
RankRankRankRankRankRank
Total Posts:  6092
Joined  08-04-2002

Almost positive it will do the conditional and then embed based on it. Have you tried it?

Profile
 
 
Posted: 19 April 2008 02:11 AM   [ Ignore ]   [ # 2 ]  
Moderator
Avatar
RankRankRankRankRankRankRank
Total Posts:  15489
Joined  05-15-2004

Conditionals are parsed first, and only when true, sub templates will be embedded. But as PXLated said, just try it yourself smile

 Signature 

Everything will be good in the end. If it’s not good, it’s not the end.

Profile
MSG
 
 
Posted: 19 April 2008 02:15 AM   [ Ignore ]   [ # 3 ]  
Grad Student
Avatar
Rank
Total Posts:  77
Joined  05-10-2006

Thanks guys it work as you suggested, and that makes me smile. smile

Profile
 
 
Posted: 19 April 2008 02:20 AM   [ Ignore ]   [ # 4 ]  
Moderator
Avatar
RankRankRankRankRankRankRank
Total Posts:  15489
Joined  05-15-2004

That’s good smile

 Signature 

Everything will be good in the end. If it’s not good, it’s not the end.

Profile
MSG
 
 
   
 
 
Post Marker Legend
New Topic New posts Hot Topic Hot Topic with new posts New Poll New Poll Moved Topic Moved Topic Sticky Topic Sticky topic
Old Topic No new posts Hot Old Topic Hot Topic with no new posts Old Poll Old Poll Closed Topic Closed Topic Announcement Announcements
Theme
Change Theme
Visitor Statistics
The most visitors ever was 1149, on July 16, 2007 09:33 AM
Total Registered Members: 65087 Total Logged-in Users: 33
Total Topics: 82229 Total Anonymous Users: 19
Total Replies: 441928 Total Guests: 219
Total Posts: 524157    
Members ( View Memberlist )