Hi. New to the forum, since I bought BlitzMax a few days ago.
I've got a pretty simple question that I can't seem to find an answer. I blaim the lack of intelligent stimulus for almost a year that I can't seem to figure out the solution to a problem that I solved all by myself about two years ago. I know how to use If else-statements with exact numbers or like if the number is between three and five, but I don't seem to be able to do it with words. Here's what I've come up with so far.
name=Byte(Input("What is thy name? ") )
If name = Walter Print "Of course it's you"
Else
Print "Not the one I'm looking for"
EndIf
The code should ask, if that one name is the name the user wrote, but with any other name it should print "not the one I'm looking for".
Thanks in advance
Mindfield
I've got a pretty simple question that I can't seem to find an answer. I blaim the lack of intelligent stimulus for almost a year that I can't seem to figure out the solution to a problem that I solved all by myself about two years ago. I know how to use If else-statements with exact numbers or like if the number is between three and five, but I don't seem to be able to do it with words. Here's what I've come up with so far.
name=Byte(Input("What is thy name? ") )
If name = Walter Print "Of course it's you"
Else
Print "Not the one I'm looking for"
EndIf
The code should ask, if that one name is the name the user wrote, but with any other name it should print "not the one I'm looking for".
Thanks in advance
Mindfield