Announcement

Collapse
No announcement yet.

Conditional formatting

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

  • Conditional formatting

    I've seen the conditionals below referenced in a couple threads - both achieve the same result. Just wondering if one of them is preferred over the other for speed, formatting, otherwise:

    1:
    Code:
    <if condition="in_array($forumid, array(1,2,3))">
    2:
    Code:
    <if condition="in_array($forum['forumid'], array(1,2,3))">

  • #2
    That'd be a personal preference if anyone has one. There shouldn't be any differences in speed.
    Best Regards
    Colin Frei

    Please don't contact me per PM.

    Comment


    • #3
      thankya thankya

      :cheers:

      Comment


      • #4
        #1 types out a tad faster, so that'd be my preference, as it isn't any less confusing with regards to readability. Anyone who codes for a living will eventually choose the most elegant and sleek way of coding. It's more efficient.
        Toddler from Hell

        Comment


        • #5
          Originally posted by Fusion View Post
          #1 types out a tad faster..
          [me]Loads up a WPM program[/me]



          Thanks

          Comment


          • #6
            That's cheating. Notepad (or an equivalent ) all the way!
            Toddler from Hell

            Comment

            Loading...
            Working...
            X