I want to make a loop in my ISML Template without an iterable object. During the runtime of this template the condition or rather the number of iterations would be defined. Is there any possibility to have a loop statemant like in java "for (int i = 0; i < 5; i++)" but without complex java code?
What is the best way to make a loop in ISML without iterable object?
2.7k views Asked by Kurt Rätzsch At
1
There are 1 answers
Related Questions in INTERSHOP
- Remove automatic gift
- How do I provide a dynamic value to a config inside Angular .forRoot?
- Trigger the invalidation of a page cache
- What's going on in intershop rounding background
- Intershop - pass call parameters to component
- Replication / Staging error - The refresh of caches failed
- How can I make the Intershop Studio faster?
- Intershop | dB migrate
- Dependency injection doesn't work in REST resource class - ICM 7.10.38.11-LTS
- Calculation spreadsheet is empty
- Pipelet Input Parameter missing
- Price list CSV import locale issue
- Unable to start aplication server from Intershop Studio
- URLRewrite rules randomly not being loaded - Intershop 7.10.29.2
- Intershop studio 4.20.0 - compileJava - ClassNotFoundException: com.sun.xml.bind.v2.ContextFactory
Related Questions in ISML
- What's going on in intershop rounding background
- Salesforce Commerce Cloud template overriding
- How can I specify the opposite of a customer segment
- Not able to save the user selected picklist value in SFCC Demandware
- ISML conditional CSS class declaration
- ISML to lit-html
- Integration of SonarQube with ISML
- Override system "URL not found" template in Intershop 7.10?
- Customer segmentation price list does not work as expected in basket and checkout
- How to override a render ISML template in Intershop7
- Live reloading of ISML templates
- intershop get date in .isml template
- Intershop: checking for not null in .isml template
- At-sign before square brackets
- Intershop: how to access values from a MultiString object in an .isml file
Popular Questions
- How do I undo the most recent local commits in Git?
- How can I remove a specific item from an array in JavaScript?
- How do I delete a Git branch locally and remotely?
- Find all files containing a specific text (string) on Linux?
- How do I revert a Git repository to a previous commit?
- How do I create an HTML button that acts like a link?
- How do I check out a remote Git branch?
- How do I force "git pull" to overwrite local files?
- How do I list all files of a directory?
- How to check whether a string contains a substring in JavaScript?
- How do I redirect to another webpage?
- How can I iterate over rows in a Pandas DataFrame?
- How do I convert a String to an int in Java?
- Does Python have a string 'contains' substring method?
- How do I check if a string contains a specific word?
Popular Tags
Trending Questions
- UIImageView Frame Doesn't Reflect Constraints
- Is it possible to use adb commands to click on a view by finding its ID?
- How to create a new web character symbol recognizable by html/javascript?
- Why isn't my CSS3 animation smooth in Google Chrome (but very smooth on other browsers)?
- Heap Gives Page Fault
- Connect ffmpeg to Visual Studio 2008
- Both Object- and ValueAnimator jumps when Duration is set above API LvL 24
- How to avoid default initialization of objects in std::vector?
- second argument of the command line arguments in a format other than char** argv or char* argv[]
- How to improve efficiency of algorithm which generates next lexicographic permutation?
- Navigating to the another actvity app getting crash in android
- How to read the particular message format in android and store in sqlite database?
- Resetting inventory status after order is cancelled
- Efficiently compute powers of X in SSE/AVX
- Insert into an external database using ajax and php : POST 500 (Internal Server Error)
There is no truly elegant way, I believe. That's because such calculations do not belong to the view layer. That's true not only for ISML but for other template engines, e.g. Thymeleaf. See here.
ISLOOPrequires one of the following standard java instances initerator:E.g.:
The control flow within the loop may be changed with
isbreakandisnext:If you really need that you may create, for example, your own iterator as simple as this and put it in the pipeline dictionary from a pipeline or an ISML module:
You may also use plain JSP scriptlet embedded in the ISML, ISML module etc. If you need a more specific answer please provide more context in your question.