I'm trying to have a computer ask for a password. But when I enter the correct password the if statement still does not return true.
As you can see from the comments I have printed the two strings that are compared and they are the same.
Am I missing something obvious?
: match "start computer" {
: if(is_present "computer"){
:ask_string question = "ENTER PASSWORD" var = "my_password";
//: print "COMPUTER PASSWORD - {computer_password}" ;
//: print "MY PASSWORD - {my_password}" ;
:if(my_password == computer_password){
: print "CORRECT!";
}
: else{
: print "PASSWORD IS WRONG.";}
}
}