How can I implement an 'or' rule for add to cart buttons?

Hi,

I’m trying to add a rule on my add to cart button that enables the text shown to change depending on the template being used. The original code I have in my theme is as follows:

<button type=“submit” class=“ProductForm__AddToCart Button {% if selected_variant.available and section.settings.show_payment_button == false %}Button–primary{% else %}Button–secondary{% endif %} Button–full” {% if selected_variant.available %}data-action=“add-to-cart”{% else %}disabled=“disabled”{% endif %}>
{%- if selected_variant.available -%}
{% if product.template_suffix == ‘pre-order’ %}{{ ‘product.form.pre_order’ | t }}{% else %}{{ ‘product.form.add_to_cart’ | t }}{% endif %}

I’m trying to add a third option in but I keep getting an error, anyone have any ideas:

<button type=“submit” class=“ProductForm__AddToCart Button {% if selected_variant.available and section.settings.show_payment_button == false %}Button–primary{% else %}Button–secondary{% endif %} Button–full” {% if selected_variant.available %}data-action=“add-to-cart”{% else %}disabled=“disabled”{% endif %}>
{%- if selected_variant.available -%}
{% if product.template_suffix == ‘pre-order’ %}{{ ‘product.form.pre_order’ | t }}{% or %}{% if product.template_suffix == ‘add_second_to_cart’ %}{{ ‘product.form.second’ | t }}{% else %}{{ ‘product.form.add_to_cart’ | t }}{% endif %}

Thanks!