- Joined
- Jun 20, 2015
- Messages
- 157
- Reaction score
- 38
- First Language
- English
- Primarily Uses
- RMMV
Hi all, very quick question.
I have a conditional branch that is checking on the value of a variable. The variable is is a text string, and I am checking this string to see if it says a certain thing before proceeding. However, I'm having some issues with this and since I'm a newbie in this area, I trust I'm doing something wrong and hoping to get some help.
Right now in my conditional branch I'm checking script:
$gameVariables.value(1) == "blah" || "blah2" || "blah3"
If var 1 matches either of those three, hen go to Label "X", else exit the event. However, no matter what the variable is, it's going to Label X. I've done a quick test to confirm that no matter the value of var 1, this test is passing as true.
Could anyone say what I'm doing wrong? Thank you!
c
I have a conditional branch that is checking on the value of a variable. The variable is is a text string, and I am checking this string to see if it says a certain thing before proceeding. However, I'm having some issues with this and since I'm a newbie in this area, I trust I'm doing something wrong and hoping to get some help.
Right now in my conditional branch I'm checking script:
$gameVariables.value(1) == "blah" || "blah2" || "blah3"
If var 1 matches either of those three, hen go to Label "X", else exit the event. However, no matter what the variable is, it's going to Label X. I've done a quick test to confirm that no matter the value of var 1, this test is passing as true.
Could anyone say what I'm doing wrong? Thank you!
c