Check text

Hi!
There is a way to check a text?
I have this plugin that can store a free input text in a variable, so it can be called in the message box.
But can I check if in that text there is, idk, the word "RPGMaker" among the others I wrote (if yes do a thing, if not another one)?
Let's say I want to check if variable 7 has the text "RPGMaker"

Make a new conditional branch, and add this script as a condition
JavaScript:
$gameVariables.value(7).includes("RPGMaker")

Knowing basic javascript is pretty important if you want to make games in RPG maker
Let's say I want to check if variable 7 has the text "RPGMaker"

Make a new conditional branch, and add this script as a condition
JavaScript:
$gameVariables.value(7).includes("RPGMaker")

Knowing basic javascript is pretty important if you want to make games in RPG maker

Thank you very much!
Yeh I know, a lot of problems came from my ignorance of javascript...
Can I ask you another thing?
Is it possible to make the game not sensitive to cases like: "Mark", "MARK", "mark".
I mean that's the same word after all
Yeah sure, but why don't you try to search the answer first? Google something like "javascript includes case sensitive" and look what people with the same problem as you did to fix it

Spoiler
$gameVariables.value(7).toLowerCase().includes("rpgmaker")

This thread is being closed, due to being solved. If for some reason you would like this thread re-opened, please report this post and leave a message why. Thank you.

Original thread: https://forums.rpgmakerweb.com/threads/check-text.116451/