This also prints the same output. a!localVariables( local!a:enumerate(13), a!forEach( items:local!a, expression: joinarray(repeat(fv!item," * ")) ) ) Functions used in above code 1)a!localvariables localVar1, localVarN, expression This function allows us to define "n" number of local variables for use within an expression. 2)enumerate(n) Returns a list of integer numbers from 0 through n-1. 3)a!forEach(items,expression) Evaluates the provided expression once for every item and returns an array of the results. 4)joinarray(array, separator)) Concatenates the elements of the array together into one string, inserting the string separator between each element (default is an empty text). 4)repeat(times, input) Returns a list with the specified number of items. For example, repeat(2, "hello") returns {"hello", "hello"}.
a!forEach(
items: enumerate(5)+1,
expression: rept("*",fv!item)
)
This also prints the same output.
a!localVariables(
local!a:enumerate(13),
a!forEach(
items:local!a,
expression: joinarray(repeat(fv!item," * "))
)
)
Functions used in above code
1)a!localvariables localVar1, localVarN, expression
This function allows us to define "n" number of local variables for use within an expression.
2)enumerate(n)
Returns a list of integer numbers from 0 through n-1.
3)a!forEach(items,expression)
Evaluates the provided expression once for every item and returns an array of the results.
4)joinarray(array, separator))
Concatenates the elements of the array together into one string, inserting the string separator between each element (default is an empty text).
4)repeat(times, input)
Returns a list with the specified number of items. For example, repeat(2, "hello") returns {"hello", "hello"}.
Localvariable(
Local1: enumerate(ri!value)+1,
for each(
Items: local1,
Expression: joinarray(repeat(fv!item,"*")," ")
)
)
U can use this it might help
Sure, Thank you so much
this is not working
@@jiply-i2g it will work may be there is some syntax error from your side.
a!localVariables(
local!outerLoop: enumerate(12) + 1;
a!forEach(
local!outerLoop,
joinarray(
a!forEach(
enumerate(fv!item)+1,
"*"
)
)
)
)
you are not explaining properly, it is very difficult to understand