On Fri, Jan 18, 2019 at 3:23 AM Mark Waddingham via use-livecode <
use-livecode@lists.runrev.com> wrote:
> On 2019-01-18 06:48, Geoff Canyon via use-livecode wrote:
> > I was in the same position with merge(). If you haven't seen it
> > already,
> > format() has some pretty amazing capabilities as
On 2019-01-18 06:48, Geoff Canyon via use-livecode wrote:
I was in the same position with merge(). If you haven't seen it
already,
format() has some pretty amazing capabilities as well.
To answer your question about escaping - yes there is:
[[[]] -> [
[[]]] -> ]
Also the merge function h
On Thu, Jan 17, 2019 at 2:27 PM Tom Glod via use-livecode <
use-livecode@lists.runrev.com> wrote:
> 6 years with LC...never used the value or merge commands . never even
> came across them.
>
> mind blown.
>
I was in the same position with merge(). If you haven't seen it already,
format() has
6 years with LC...never used the value or merge commands . never even
came across them.
mind blown.
On Thu, Jan 17, 2019 at 3:46 PM Geoff Canyon via use-livecode <
use-livecode@lists.runrev.com> wrote:
> On Thu, Jan 17, 2019 at 11:01 AM hh via use-livecode <
> use-livecode@lists.runrev.com>
On Thu, Jan 17, 2019 at 11:01 AM hh via use-livecode <
use-livecode@lists.runrev.com> wrote:
> > 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 if
> 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
On Thu, Jan 17, 2019 at 4:36 AM hh via use-livecode <
use-livecode@lists.runrev.com> wrote:
> > Geoff wrote:
> > using value():
> > the name of tID && "[" & the id of tID & "]"
> > using merge():
> > [[the name of tID]] - ([[the id of tID]])
> > (is there a way to escape the "["?)
>
> You could us
> Geoff wrote:
> using value():
> the name of tID && "[" & the id of tID & "]"
> using merge():
> [[the name of tID]] - ([[the id of tID]])
> (is there a way to escape the "["?)
You could use with merge not only variables but also functions
that are available for the script that calls merge:
[[br