Object Iteration in Face Templating

Object Iteration in Face Templating

Hello,

According to the documentation for Face, one of the types of "for" loop is described as follows:

 Object iteration

Iterate over objects

 

Example

{% assign food = {"salt""1 tbsp", "ketchup": "5 tbsp", "mustard" "1 tbsp""pickle": "2 tbsp"} %}

{% for ingredient, amount in food %}

Use {{ amount }} of {{ ingredient }}

<br>

{% endfor %}

 

Output

Use 1 tbsp of mustard

Use 1 tbsp of salt

Use 5 tbsp of ketchup

Use 2 tbsp of pickle 

 

Note: Order of iteration is random.


I have a couple of questions about this...

First, the description of "Iterate over objects" is a bit vague, as it really tells me nothing as to what this tag is intended for.

Second is the note at the end stating, "Order of iteration is random."  (???)  I'm not sure that makes any sense.

It seems that either the documentation is wrong, or perhaps that this tag simply never worked as intended, and as a result the poor fellow who had to write the documentation was attempting to describe the broken functionality as best as possible.

Can Zoho please provide some additional insight as to the original intent as well as the proper use of this particular tag?

Thanks,
Bryan
    Zoho Desk Resources

    • Desk Community Learning Series


    • Digest


    • Functions


    • Meetups


    • Kbase


    • Resources


    • Glossary


    • Desk Marketplace


    • MVP Corner


    • Word of the Day


      • Sticky Posts

      • Unveiling Zoho Sites 2.0 - A new dimension in website building

        Dear Zoho Sites Users, We are thrilled to announce the launch of Zoho Sites 2.0 today! This refresh represents a significant step forward in the capabilities of Zoho Sites and is crucial for creating a lasting and positive impact on our customers' businesses.
      • Website Accessibility

        I have two sites created in Zoho Sites which are both live. Some questions: 1. Are any of the template themes WCAG 2.1 AA compliant? 2. How do I change the format of a sub-heading in the header section? 3. Is there any way to add focus indication for
      • Visual Editor Webinar

        Join our FREE live webinar to learn how to use the Zoho Sites Visual Editor to easily design your website. Our product specialist will demonstrate how this tool will help you customize your website to suit your requirements.  Register here: https://www.zoho.com/sites/webinars/
      • SEO for your Zoho Sites Website

        Join our live webinar to learn how to use Zoho Sites' SEO tools to boost your website's ranking. Our product specialist will demonstrate everything you need to know about optimizing your web pages to make them search engine friendly. Register here for free: https://www.zoho.com/sites/webinars/
      • Zoho Sites Webinar | Integrations

        Join our FREE live webinar to learn how to integrate both Zoho and third-party products with your Zoho Sites website. Our product expert will demonstrate how to use these integrations to grow, manage, and retain the customers you bring in. Learn how to take your business forward and build stunningly robust and efficient websites. Register here: https://www.zoho.com/sites/webinars/

      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 コンテンツ




                              ご検討中の方