I am trying to make a function which checks if enum type is equal to none , if it is equal then program execution flow should go ahead and if false , it should stop the flow of program until its true , but its even with pins and condition false or without pins in my function connected to return output its executing the flow ahead to it