Hi,
I must have some amnesia or something, but I forgot if i can use OR ( "|" right? ) in condition comparing a variable, like varX = "A" | "B" | "C", and will that work?
Thanks! XD
No: varX="A" | varX="B" | varX="C"
No, you would have to compare (varX = "A" )|(varX = "B" )|(varX = "C") is equal to 1
| is the logic operator OR.
Hey, thanks for quick reply. So which condition I can use for that? I want to compare instance's variable.
I would say pick by evaluate
Develop games in your browser. Powerful, performant & highly capable.
Compare two values:
varX="A" | varX="B" | varX="C"
Equal to
1
Compare two values: varX="A" | varX="B" | varX="C" Equal to 1
Pretty sure you're right, but I don't understand the logic behind it! >.> Basically I want to compare if instance's object variable is either = string A, string B, or string C etc. How this would work with 1?
The result of a boolean comparison is either True or False, which is the equivalent of 1 or 0.
Ah, I get it now! Awesome! Thanks guys!
So "(Objects.Type = "Doors" | Objects.Type = "Chest" | Objects.Type = "Gate" ) equal to 1" will work right?
Yes.
Thanks!