Quote:
Originally Posted by
elixir_sinari
That should not be a problem at all. The last ;; in the case construct is optional.
@OP: To which if does the fi on line 62 correspond?
yeah its not the
;; in the
case, it's not required at the end of the case statement (although it isn't a bad habit). it IS required for multiple case statements. And as far as the
fi on line 62, I was just reviewing my code, and it was one of those things that I just kept looking over and I noticed. I got on here to post this as resolved. The
fi was a mistake due to the copy and pasting from the other scenario of the game. I know copy/paste causes a lot of errors and I browsed it for misplaced quotation marks and various other errors, but I forgot that the whole statement that I copied was part of an if statement from the other scenario. That
fi on line 62 should not have been there, there only should have been the one on line 60 but thank you so much for your prompt response to this. I've just began learning scripting and bash as a whole about 4 days ago, so I'm sure this is going to be a go-to source for help in this text based game. I'm just trying to find a way to spice it up and once I do I'm sure I'll have way more complicate code than [ICODE]case[/ICODE[,
while/do and nested
if statements!!