Problem with If statement in html page

Problem with If statement in html page

Hi there!

I'm trying to make a HTML page and I need to apply some conditions but I don't know where is my problem.
This is my initial code:

  1. <%{
        bill = Presupuestos[Code1 == input.code];
        entorno = Entornos[ID == bill.Entorno];
        %>
    PRESUPUESTO <%=bill.Code1%>
    <br>

    <%{
        if ( entorno.Entorno_Nombre == "TEXT")
        {
            %>
            <img width='100' src='https://......'/>
            <%
        }
    }%>

    <%=entorno.Entorno_Nombre%>
    <br>
    <%=bill.Fecha%>
    <%

    }%>

And I have this Error:

Error at line number:7

Improper Statement
Error might be due to missing ';' at end of the line or incomplete expression

So I tried put the ';' in different lines but did not work.

Anyone can help me?

Thank you
    Zoho Desk Resources

    • Desk Community Learning Series


    • Digest


    • Functions


    • Meetups


    • Kbase


    • Resources


    • Glossary


    • Desk Marketplace


    • MVP Corner


    • Word of the Day


      Zoho CRM Plus Resources

        Zoho Books Resources


          Zoho Subscriptions Resources

            Zoho Projects Resources


              Zoho Sprints Resources


                Zoho Orchestly Resources


                  Zoho Creator Resources


                    Zoho WorkDrive Resources



                      Zoho Campaigns Resources

                        Zoho CRM Resources

                        • CRM Community Learning Series

                          CRM Community Learning Series


                        • Tips

                          Tips

                        • Functions

                          Functions

                        • Meetups

                          Meetups

                        • Kbase

                          Kbase

                        • Resources

                          Resources

                        • Digest

                          Digest

                        • CRM Marketplace

                          CRM Marketplace

                        • MVP Corner

                          MVP Corner




                          Zoho Writer Writer

                          Get Started. Write Away!

                          Writer is a powerful online word processor, designed for collaborative work.

                            Zoho CRM コンテンツ




                              ご検討中の方