Dictionaty commands and if conditions