can i use logic to form redirection