Fixed inline if syntax