Dissecting the Default Templates: Conditional Variable Pairs
Posted: 02 November 2007 01:08 PM   [ Ignore ]  
Moderator
Avatar
RankRankRankRankRankRankRankRank
Total Posts:  32921
Joined  05-14-2004

So, we’ve now been introduced to many of the core concepts in ExpressionEngine, including parameters, variables, paths, assigned variables, and variable pairs.  Now it’s time to begin our adventures into conditionals.

Conditionals are a powerful concept that allow you to show data based on the existence of some other value stored in the system.  You can create conditionals for any variable in ExpressionEngine; however, there are some variables that ExpressionEngine gives you to make things easier.  This includes testing to see if comments are allowed, and if trackbacks are allowed.  And so we reach the next few lines of our template.

Onwards!

 Signature 
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: 65063 Total Logged-in Users: 47
Total Topics: 82196 Total Anonymous Users: 25
Total Replies: 441740 Total Guests: 242
Total Posts: 523936    
Members ( View Memberlist )
Newest Members:  1nvidiousjaris1skinnygirlaexermk1979Andrew_IDmdutahDanielJ8Forward GearCBlalock