In User Macro (template), the IF statement always returns true.

      Steps to Replicate

      1. Create a simple Rendered User Macro with the following sample template:
        ## @param PM:type=boolean
        #if($paramPM)
        PM is <b>true</b>
        #else
        PM is <b>false</b>
        #end
        
      2. Insert the user macro in a page
      3. In the Macro Editor, the default state of the checkbox is unticked
      4. Save the page
      5. The page shows 'PM is true' instead of 'PM is false'

      Workaround
      Define the default value of parameter in the IF statement:

      ## @param PM:type=boolean
      #if($paramPM == "true")
      PM is <b>true</b>
      #else
      PM is <b>false</b>
      #end
      

            [CONFSERVER-33964] IF Statement Always Returns TRUE In User Macro

            Katherine Yabut made changes -
            Workflow Original: JAC Bug Workflow v3 [ 2897944 ] New: CONFSERVER Bug Workflow v4 [ 3002378 ]

            I know this is an old issue and it was closed, but how can we vote on it if it's marked closed?

            Kevin O'Brien added a comment - I know this is an old issue and it was closed, but how can we vote on it if it's marked closed?
            Owen made changes -
            Workflow Original: JAC Bug Workflow v2 [ 2789936 ] New: JAC Bug Workflow v3 [ 2897944 ]
            Status Original: Resolved [ 5 ] New: Closed [ 6 ]
            Owen made changes -
            Workflow Original: JAC Bug Workflow [ 2720565 ] New: JAC Bug Workflow v2 [ 2789936 ]
            Owen made changes -
            Workflow Original: Confluence Workflow - Public Facing - Restricted v5 - TEMP [ 2384060 ] New: JAC Bug Workflow [ 2720565 ]
            Katherine Yabut made changes -
            Workflow Original: Confluence Workflow - Public Facing - Restricted v5 [ 2278299 ] New: Confluence Workflow - Public Facing - Restricted v5 - TEMP [ 2384060 ]
            Katherine Yabut made changes -
            Workflow Original: Confluence Workflow - Public Facing - Restricted v5.1 - TEMP [ 2219960 ] New: Confluence Workflow - Public Facing - Restricted v5 [ 2278299 ]
            Katherine Yabut made changes -
            Workflow Original: Confluence Workflow - Public Facing - Restricted v5 - TEMP [ 2154770 ] New: Confluence Workflow - Public Facing - Restricted v5.1 - TEMP [ 2219960 ]
            Katherine Yabut made changes -
            Workflow Original: Confluence Workflow - Public Facing - Restricted v5 [ 1937352 ] New: Confluence Workflow - Public Facing - Restricted v5 - TEMP [ 2154770 ]
            Katherine Yabut made changes -
            Workflow Original: Confluence Workflow - Public Facing - Restricted v3 [ 1736507 ] New: Confluence Workflow - Public Facing - Restricted v5 [ 1937352 ]

              Unassigned Unassigned
              prompas Patrice Rompas (Inactive)
              Affected customers:
              1 This affects my team
              Watchers:
              6 Start watching this issue

                Created:
                Updated:
                Resolved: