Stop Make from removing quotes without any warning

This drives me insane. Make will just silently removes quotes when I’ve wrapped them around a variable.

  1. It shouldn’t just silently do this without any warning. I’ll close the module and reopen - and the quotes are just gone.
  2. It shouldn’t be doing this at all! I need the quotes!

How do I prevent this from happening? Is there something I can do to escape that I need it? I tried using \ but then it ironically will keep both the / and the ".

SCR-20240126-mwee
SCR-20240126-mwig

Hey @TJ

I think if you want the quotes in your value, you can simply map this in your ‘set variable’ module.

like this and map this into your query

But if you do it like this, the string variable will never be empty, since it will always have two quotes.

3 Likes

hey @TJ
try using this it gives your desired out replace {{ifempty(13.cursor; “null”)}} with {{ifempty(if(13.cursor = emptystring; emptystring; 13.cursor); “null”)}}
this gets the value of cursor as with “” if cursor is not empty
if empty it gives null
Screenshot 2024-01-26 140319

I think this solution won’t work either. The double quotes for the GraphQL are necessary, and your solution doesn’t solve the double quote issue.

I think the original post is a bug and should be reported to the support team instead. I’ve encountered the issue of Make removing my double quotes around variables on several occasions and it’s quite shocking to be honest once you notice it.

For quicker assistance with technical issues like these, you may want to contact support directly. They respond very quickly and update you frequently on the status of their investigation.

2 Likes

I understand @samliew
@TJ if you are in a hurry, For now use the workaround I suggested

Thanks for the input everyone.

Make support got back to me and suggested using toString()

I had to make a few changes, as I couldn’t put that into the ifEmpty() as then it would never be empty; but below is my final solution:

{{if(13.cursor = null; "null"; toString("""") + 13.cursor + toString(""""))}}

image

Of note: I didn’t add the +; Make automatically added those as well.

1 Like

Hi @TJ :wave:

Thanks so much for stepping back here and letting us know what the support team advised and how you managed to make it work for your specific case :pray:

FYI: I am marking your last comment as a solution to keep the community organized and easy to look for answers :white_check_mark:

1 Like