I have removed the two if statements from before and replaced them with a case statement and tried to remove all the error from the code.
I am trying to run this code but i
One input here-
I was facing same issue for one of my scripts. I found one blunder I have done.
Always make sure function names should not have - and instead _ should be used.