oh, your real question is how to see if you are calling your function from inside the loop, while inside the function...no, that can not be done, through a command, but can be done through logic, and default params, like such: