Basically when this button is clicked and the user is not logged in it will show signup/login popup. Which is fine but in the background it is still going through the entire workflow which is slowing the website down.
The workflow gets executed when the current user is logged in but when it is not logged in the workflow should not execute and be stopped after showing popup.
Any ideas how?
I have already added in when the user is logged in but I would rather just have it stop after popup.
Events are the trigger part of the workflow. In your case “when button is clicked”. You can add conditions to that part instead of the actions themselves, actions being “show popup”, “go to page”, etc.