Setting variable as wording and conditional checking

If I want to set variable 1 to have wordings like "In Progress", I just script call $game_variables[1]="In Progress". However; if I would like to have an event to check whether variable 1 = In Progress. In conditional branch, how should I write?

Thanks!
$game_variables[1] == "In Progress"

Note the double equal.
You need to use the script option of the conditional branch, and the comparison operator is ==. Example:


conditional branch:script:$game_variables[1]=="In Progress"


Edit: ninja'd
Thanks for your reply Tsukihime and Andar!

A silly question but what is the difference between = and == ??

Because I used = in my conditional branch and it doesn't work correctly. The event is when you accept a quest from NPC, the variable 1 will change to "Not Completed" then switch on and move to the next event page. Then set conditional branch to check variable 1 = Completed. If yes then the quest is completed. However; it just ingores checking the variable and updates it to "Completed" automatically.
= sets first variable equal to the value of the seccond variable.

== asks if variable 1 and 2 got the same value. is var1 same than var2, thats what it does in short words.
= sets first variable equal to the value of the seccond variable.

== asks if variable 1 and 2 got the same value. is var1 same than var2, thats what it does in short words.
Thank you! It's very clear to me now.
and because of that, using = in condition will return true as long as the setting goes without errors...

Original thread: https://forums.rpgmakerweb.com/threads/setting-variable-as-wording-and-conditional-checking.36835/