@givirus its because of your script logic, maybe you dont call the function? OR you dont have proper error handling which results into certain parts of your script being skipped since they are inside an if statement. I encountered this problem many times in the past, you will need to handle errors and it'll will be most likely fixed, for the purpose of debugging you can use the "Log" function at several points to see where it will print it.
put action/function in 'deactivate' mode
-
when editing any function, sometimes we want to test by not activating certain actions/functions .. but not deleting them .. because if we delete these actions/functions, we have to put them back again after testing.
can we put them on 'de-activate' mode? .. just like when you test a batch file, you can de-activate a command line by making it into a 'comment' instead