vinci1it2000 / formulas

Excel formulas interpreter in Python.
https://formulas.readthedocs.io/
European Union Public License 1.1
342 stars 75 forks source link

Help needed on Create Custom Function (FOR LOOP) #118

Open dammianhr opened 1 year ago

dammianhr commented 1 year ago

Hi! I need some help with this. I need to create a function that allows to create an array in a controlled way. For example: FOR(8, IF(I==0, VAR1, 0)) I = index loop

where the result is:

VAR1 = 100
[100, 0, 0, 0, 0, 0, 0, 0]

VAR1 can be an expression

Python 3.11 formulas == 1.2.6

Thanks in advance!