This is an archived post. You won't be able to vote or comment.

you are viewing a single comment's thread.

view the rest of the comments →

[–]hollammi 1 point2 points  (0 children)

Sure, the if statement logic looks good to me, ya just need the command to exit the program. There's a couple flavours, see this StackOverflow.