Richard, I decided to give a try to Conditional Statements so I can simplify a Security Alert for my doors. I managed to right down this logic and I think it is working because I get the desired string in the value of the condition, but the action is not triggered, how can I trigger it??
((main_door_open AND kitchen_patio_close AND !roof_door_open) AND !bedroom_open AND is_night) ? "{tone:tts}{BGColor:red}{FGColor:red}Alerta! Puerta principal abierta!" : ((!main_door_open AND !kitchen_patio_close AND !roof_door_open) AND !bedroom_open AND is_night) ? "{tone:tts}{BGColor:red}{FGColor:red}Alerta! Puerta patio abierta!" : ((!main_door_open AND kitchen_patio_close AND roof_door_open) AND !bedroom_open AND is_night) ? "{tone:tts}{BGColor:red}{FGColor:red}Alerta! Puerta ruf abierta!" : ((main_door_open AND !kitchen_patio_close AND !roof_door_open) AND !bedroom_open AND is_night) ? "{tone:tts}{BGColor:red}{FGColor:red}Alerta! Puerta principal y patio!" : ((main_door_open AND kitchen_patio_close AND roof_door_open) AND !bedroom_open AND is_night) ? "{tone:tts}{BGColor:red}{FGColor:red}Alerta! Puertas principal y ruf abiertas!" : ((!main_door_open AND !kitchen_patio_close AND roof_door_open) AND !bedroom_open AND is_night) ? "{tone:tts}{BGColor:red}{FGColor:red}Alerta! Puertas patio y ruf abiertas!" : ((main_door_open AND !kitchen_patio_close AND roof_door_open) AND !bedroom_open AND is_night) ? "{tone:tts}{BGColor:red}{FGColor:red}Alerta! Todas las puertas abiertas!" : !is_night ? "{tone:none}{BGColor:red}{FGColor:green}Seguridad desactivada" : "{tone:tts}{BGColor:red}{FGColor:blue}La casa est? segura"
Regards.