Added keyword end to inline conditional