The merge function is awesome!

hh hh at hyperhh.de
Thu Jan 17 14:00:58 EST 2019


> Geoff wrote:
> ... you've just given me an idea how to handle things like font/styling
> tags. Something like:
> function ifTag b,o,s,c
>     if b then return o & s & c else return s
> end ifTag

Allow me two remarks.

1. You could use, in order to avoid the check:

function tag s,o,c
    return o & s & c
end tag

And both, tag("inner") and tag("inner","left-","-right") work.

2. Also array-things work with merge, like [[a[1]]].





More information about the use-livecode mailing list