Trying to run an if statement only if the check box is checked

in the code below, I would like to run the first part of the code, the script between the green comments that show New Product, only if the check box is ticked. If not it would ignore the code and continue to run.


            {%- if block.settings.new-vendor != blank -%}
            
              

                

                  
            
                  
                

              

            
              {%-elsif-%}
            
              

                

                  

                  
                  {%- endif -%}
                

              

              

            

this is the schema, incase y’all need to see it

{
        "type": "checkbox",
        "id": "new-vendor",
        "label": "New Product",
        "default": false
        },

Hello @DFlores ,

Checkbox return true/false
You can simply use it in this way

{%- if block.settings.new-vendor -%}

{%- endif -%}

Thanks

Thank you so much for your help, it worked like a dream.