Clay Icon
  • Avatar of Wayne H.
    Wayne H.
    ยท
    ยท

    please don't tell me that's an ugly formula and you don't do the liquid syntax

  • Avatar of Wayne H.
    Wayne H.
    ยท
    ยท

    I mean that's ok I guess: ["abc", "xyz", "tyz"][Math.floor(Math.random() * 3)] I can live with that

  • Avatar of Wayne H.
    Wayne H.
    ยท
    ยท

    Tell me if there is something easier than this math.floor formula, for now my pain is more or less fixed

  • Avatar of Clay T.
    Clay T.
    APP
    ยท
    ยท

    Hey Wayne sorry for the delay. Let me take a look.

  • Avatar of Arturo O.
    Arturo O.
    ยท
    ยท

    Hey Wayne, looks like your spintax was properly set but happy to add or find better options depending on what your goals are.

  • Avatar of Wayne H.
    Wayne H.
    ยท
    ยท

    liquid is my goal. I want to use liquid

  • Avatar of Wayne H.
    Wayne H.
    ยท
    ยท

    It's ok what I have above is a decent workaround, build more useful features than that ๐Ÿ˜†

  • Avatar of Clay T.
    Clay T.
    APP
    ยท
    ยท

    Oh, is liquid another software or tool you can use for this? or what do you mean by this?

  • Avatar of Wayne H.
    Wayne H.
    ยท
    ยท

    this is liquid:

    {% if customer.first_name %}
       Hi {{customer.first_name}}!
    {% else %}
       Hi Buddy!
    {% endif %}

  • Avatar of Wayne H.
    Wayne H.
    ยท
    ยท

    things like that

  • Avatar of Clay T.
    Clay T.
    APP
    ยท
    ยท

    Ah, so just another type of conditional format. You can still use the formula generator to achieve something like this though. Did it not work as intended? if you have an example you can point me to in your table, happy to check it out and see if there's anything we can do

  • Avatar of Wayne H.
    Wayne H.
    ยท
    ยท

    [ "Hi {{first_name}} - I am contacting you because you're the " + {{lower_case_job_title}} + " at " + {{shorter_company_name}}?.response + "." , "Hi {{first_name}} - I reached out because you're the " + {{lower_case_job_title}} + " at " + {{shorter_company_name}}?.response + "." , "Hi {{first_name}} - I see you're the " + {{lower_case_job_title}} + " at " + {{shorter_company_name}}?.response + "." ][Math.floor(Math.random() * 3)] Look at this

  • Avatar of Wayne H.
    Wayne H.
    ยท
    ยท

    is there something easier here?

  • Avatar of Wayne H.
    Wayne H.
    ยท
    ยท

    because that's very painful

  • Avatar of Clay T.
    Clay T.
    APP
    ยท
    ยท

    If you're trying to use formulas for that, then that's the best option for now, since this is using Javascript and that's how the code would work I believe

  • Avatar of Clay T.
    Clay T.
    APP
    ยท
    ยท

    You can click on the "use AI" on the formula generator if you prefer to ask the AI to write this code for you but it may result in similar outputs or having to prompt in a similar way.

  • Avatar of Wayne H.
    Wayne H.
    ยท
    ยท

    ok thanks