結果 : function of a push and toggle switch