I have a rly complex function so i dont post it here but within this function i want to run a loop . The result of each run should be saved in a vector entry. Also i want to have and if else statement within this loop. When i run the loop i get the vector vr but i have only Null entries exept the last entry. How can i adjust the loop so that every result of the loop is saved in the vector and not only the last one?I have a rly complex function so i dont post it