I’m trying to convert a number value (1) to a string (“1”).
I was expecting the Set function to already take care of this when selecting ‘String’ as the Value to Set. Tried adding “” in the value, as well as Javascript functions String and .toStrring(). And although the example, as well as the output in table form display “1”, the result remains 1 (without the “”). Any idea what I might be doing wrong?
indeed weird … also because the other way around (number to string) works, i.e.
{{ Number($json["id"]) }}
I’m trying to merge two datasets, where the id is dataset A is number and in dataset B is string. Would be nice if the Merge node would ignore the data type and would merge on the content …
Yes, this would be very nice indeed. I have the same issue with a lot of my data sets. I always turn the string into numbers so never noticed any issue with converting them.
Still no idea why the convert to string doesn’t work. have you tried (value).toString() without putting the “” around it?