":" at the end of line can replace 'then'

":" at the end of line can replace 'then'