Closed
Description
Hello, is setting simvar values supported in event_press conditions?
I'm trying to create a COM swap button as follows:
{
"index": 6,
"event_press": {
"type": "condition",
"event": [ "{% if data.get_simvar_value('SWAP_COM') == 1.0 %}",
"{{ data.trigger_event('COM_STBY_RADIO_SWAP', 1.0) }}",
"{{ data.set_simvar_value('SWAP_COM', 0.0) }}",
"{% else %}",
"{{ data.trigger_event('COM2_RADIO_SWAP', 1.0) }}",
"{{ data.set_simvar_value('SWAP_COM', 1.0) }}",
"{% endif %}" ],
"description": "Swap COM"
}
But set_simvar_value does not seem to work. Any ideas?