added controls_switch block
added logic_compare block