I would like to have the user input a phrase and have a response printed if any one of a number of certain keywords is detected in the string that the user made. I'm able to implement the "contain" operator with an (if:) or (unless:) statement just fine for only one word. However, the moment I try to add more strings I get back an error:
Can anyone tell me how I might implement a check for multiple strings? Thanks.
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".
Can anyone tell me how I might implement a check for multiple strings? Thanks.