Web Analytics Made Easy -
StatCounter Template Toolkit - CodingForum

Announcement

Collapse
No announcement yet.

Template Toolkit

Collapse
X
 
  • Filter
  • Time
  • Show
Clear All
new posts

  • Template Toolkit

    Hi guys,

    Is it to use the shorthand ? : options in template toolkit, instead of loads of if else statements?

    If so could you provide an example.

    Thanks

  • #2
    I would say in general it's OK to use the ternary operator in place of an if/else block but it depends on what the if/else block is doing.

    Comment

    Working...
    X