PHP variable inside a simple FOR

How to apply a simple PHP variable inside FOR?

The beauty of Wappler is that the backend writes to JSON files which are then translated by App Connect on the front end. This means that, with few exceptions, there is no need for server side code to be included in your document.

In your case, I would use a repeat area such as

<div class="row" is="dmx-repeat" id="repeatDias" dmx-bind="sc_single_destino.data.query.pct_dias_quant">

Inside the repeat area, you can place the action(s) to be taken.

NB: I have hand coded the script, it may contain errors. These errors can be overcome if you use Wappler’s UI to create the repeat area.