Ruby / Rails - example of if then statement... in a view file *.html.erb:
By Whitney Roberts at Mar 26 2022