If statement PHP and Smarty question

Discussion in 'PHP' started by oseymour, Aug 17, 2009.

  1. #1
    hey guys I'm trying to grasp PHP and smarty templating. Can anyone please explain in english what the following statement means?

    {if $addedcat|freesample}
     
    oseymour, Aug 17, 2009 IP
  2. kblessinggr

    kblessinggr Peon

    Messages:
    539
    Likes Received:
    13
    Best Answers:
    0
    Trophy Points:
    0
    #2
    Normally || would mean the boolean "OR", and a single | would be a variable modifier, according to Smarty's own documentation, that should be an invalid if sample unless someone created a custom modifier called freesample.

    So in a nutshell, thats an invalid conditional.
     
    kblessinggr, Aug 17, 2009 IP