You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Currently if you have a singe element not an array, the count function does not do anything. It would be great if the function would then result in 1 instead.
Currently one has to do something like:
set_array("indexCountHelper[]")
do list(path:"array[]","var":"$i")
copy_field("$i.a","indexCountHelper[].$append")
copy_field("indexCountHelper[]","$i.indexPosition")
if is_array("$i.indexPosition")
count("$i.indexPosition")
else
add_field("$i.indexPosition","1")
end
end
Currently if you have a singe element not an array, the
count
function does not do anything. It would be great if the function would then result in 1 instead.Currently one has to do something like:
This is also related to the issue of #621.
The text was updated successfully, but these errors were encountered: