<%= "<br>" if my_condition %>

Hi, I have a string:

<%= “
” if my_condition %>

How I can do that output won’t be “
” if my_condition is true, but
will be a new line?

I think this is what you are asking, <%=raw “
” if my_condition %>

Thanks