Apr-23-2019, 01:58 PM
(This post was last modified: Apr-23-2019, 01:58 PM by ichabod801.)
As I said, python tags, not output tags.
If someone said you can do that using booleans, I don't know what they are talking about either. I would ask them to clarify what they mean.
Although, I would have the function return True and False rather than "YES" and "NO". Maybe that's what they were talking about. Then you can just use
If someone said you can do that using booleans, I don't know what they are talking about either. I would ask them to clarify what they mean.
Although, I would have the function return True and False rather than "YES" and "NO". Maybe that's what they were talking about. Then you can just use
if check_string(text, to_find):
rather than if check_string(text, to_find) == 'YES':
.
Craig "Ichabod" O'Brien - xenomind.com
I wish you happiness.
Recommended Tutorials: BBCode, functions, classes, text adventures
I wish you happiness.
Recommended Tutorials: BBCode, functions, classes, text adventures