The merge function is redundant?
hh
hh at hyperhh.de
Fri Jan 18 16:04:08 EST 2019
> Kee N. wrote:
> I’m confused. Can someone explain why merge function exists when
> the put function works just as well?
> merge([[ 1 + 2 ]] = 3) vs put 1 + 2 && “= 3”
merge([[ 1 + 2 ]] = 3) produces a script error,
this should read merge("[[ 1 + 2 ]] = 3").
Merge is the one and only function to do *multiple* replacements in
large strings in *one* shot. This is especially *very* important when
setting wordy strings like htmltext (or emails, as JLG denoted).
More information about the use-livecode
mailing list