22. Add a simple variable condition
Select the dialogue record, open the Inspector’s Raw JSON (Advanced) tab and locate the desired response inside its Choice node’s options array. Add a condition object to that response.
{
"id": "ask_key",
"text": "May I borrow the archive key?",
"next": "give_key",
"enabled": true,
"repeatable": false,
"condition": {
"variable": "archive_key_given",
"equals": false
}
}Figure 17. A condition belongs to one option. Keep the surrounding dialogue and nodes intact when editing the record.
Apply the JSON changes, return to the graph and save the project. Do not paste this small object over the entire dialogue record: it is one entry inside topics → options.
Use the Boolean false, without quotation marks. The native check compares the variable value with equals. It does not evaluate a script expression, a greater-than test or an arbitrary natural-language condition.
