Custom Chat command with If conditions

Thank you so much. I found a solution. Here check it out the working version: Code