Hi digantas adding to Justin Watts comment, also if you want to hold the values of nested foreach , you can define a local variable on top load() and within foreach you can define an another load() where for each iteration you need to append fv!item…