It looks like you're new here. If you want to get involved, click one of these buttons!
These strings are never 0 or empty. I write them in the format ofI can only use 'or' to join booleans, not the string "[any string i put]".►
If one of these values is a number, you may want to write a check that it 'is not 0'. Also, if one is a string, you may want to write a check that it 'is not "" '.
(if: "word" or "phrase" is in $greeting)or
(if: $input contains "word" or "phrase")And it always spits back that "or" error even though I am using "or".
Comments
eg. "phrase" is in $greeting and $input contains "word" are both Boolean expressions.
If you read the OR operator's Purpose within the Boolean data section you will you see that if either side equals true then the overall expression will equal true.
This infers that an expression can be made up of two (or more) sub-expressions joined by an OR (or AND) operator.
p.s. Advance String searches using Regular Expressions and the String object's search() method.
It would take too long to explain how to use Regex in any detail but the above example could of also be written like so: