input directive: useRepeat if else changes