Is there a command that does this? I’m thinking of a code (or its output) that can be used to quickly check for “if at least 2 out of 4” are true. (or 1 out of 4, or 3 out of 5, etc)
Just ifs? Isn’t with every if, you also need an elseif or an else that covers the other variables too?
So far, if I have an if true statement, there is always an elseif false and/or just else following it (and vice versa, same thing goes with a text string). I don’t have ICF turned on, if that makes a difference.
*if, *elseif, and *else mean “If this condition is met do this. However, if that doesn’t work, do this instead. And if nothing else works, do this.”
They’re exclusive – only one command would trigger. You want the game to run through all of them and check them individually. With elseif etc., it would only check one and then skip the rest.
Got it. I should be able to streamline some stuff going forward then.
I’ve never thought of using multireplace. Those variable names are just examples in this case, but if I ever name my variable like that, I’ll keep this in mind!
And for the elseif/else example… Perhaps I should’ve chosen something that isn’t true/false for that - I often use else after elseifs to check if I’ve forgotten anything and made a bug when doing a string comparison.