Re: [tw5] Re: Concatenation and arithmetic

2020-09-11 Thread Bob Jansen
Thanks Thomas with all this help I’m getting I’m learning fast Bobj Dr. Bob Jansen 122 Cameron St, Rockdale NSW 2216, Australia Ph: +61 414 297 448 Skype: bobjtls > On 12 Sep 2020, at 06:05, Thomas Elmiger wrote: > > And here is a button that creates a new tiddler who’s title includes a

[tw5] Re: Concatenation and arithmetic

2020-09-11 Thread Thomas Elmiger
And here is a button that creates a new tiddler who’s title includes a number retreived from a tiddler. After creating the tiddler, the number ist incremented using the rpn macro: <$wikify name="id" text="{{$:/plugins/telmiger/AutoTid/next-ID }}-{{$:/plugins/telmiger/AutoTid/namespace}}">

[tw5] Re: Concatenation and arithmetic

2020-09-11 Thread Thomas Elmiger
Hi bobj Some time ago, before TiddlyWiki had math filters, I made a plugin for simple minds like me ;–) https://tid.li/tw5/plugins.html#%24%3A%2Fplugins%2Ftelmiger%2Frpn Amongst other simple tasks it comes with a handy macro: - the macro takes two operands (*a* and *b*) as input – this may

Re: [tw5] Re: Concatenation and arithmetic

2020-09-10 Thread TW Tones
Indexe based location to increment Requires initialisation <$button> <$list filter="[{$:/config/incremental/indexes##A}is[blank]]" variable=nul> <$action-setfield $tiddler="$:/config/incremental/indexes" $index="A" $value="0"/> <$action-setfield $tiddler="$:/config/incremental/indexes"

Re: [tw5] Re: Concatenation and arithmetic

2020-09-10 Thread TW Tones
Bob, a little more - If you are doing this to develop a unique ID I have done considerable work on what I call a tiddler Serial number, so do ask. - The new tiddler process done the correct way, will also increment a tiddler title if the current title exists. - It is possible to

Re: [tw5] Re: Concatenation and arithmetic

2020-09-10 Thread TW Tones
Bob, I meant to say I live and work in Randwick. Place this in a new tiddler and click add 1 <$button> <$action-setfield $tiddler="$:/config/incremental" text={{{ [{$:/config/incremental}add[1]] }}}/> Add 1 $:/config/incremental {{$:/config/incremental}} <$set name=currentN

Re: [tw5] Re: Concatenation and arithmetic

2020-09-10 Thread TW Tones
Bob, You are not on the wrong track, but there are more possibilities than that. To increment a number you need to write to a tiddler or field, unless you are using variables, in your case you want the value saved in a tiddler, you will need to use a trigger. the most common of which is a

Re: [tw5] Re: Concatenation and arithmetic

2020-09-10 Thread Bob Jansen
am I correct in my thinking that I can consider a tiddler like an object in an OO database having data stored in fields and functions stored as macros in the text field? In my case, if I had a tiddler, say $:/tls/unique-id with a field unique_id having a value of 1. I could then write a macro

Re: [tw5] Re: Concatenation and arithmetic

2020-09-10 Thread Dr Bob Jansen
Tones, Thanks for your reply. I am not averse to learning about filters in fact as I go along I'm getting much better at them. I was just frustrated at the poor documentation of how to do simple concatenation or arithmetic. The examples assume a higher level of familiarity with the subject

[tw5] Re: Concatenation and arithmetic

2020-09-09 Thread Brian Radspinner
Building off TW Tones, here's a simple temperature converter using filters to pull an input number from a state tiddler ( $:/_br/converter/state ) field named "temp-f" and use filter math operators to convert it to celsius before editing another field (temp-c) in the same state tiddler. You can

[tw5] Re: Concatenation and arithmetic

2020-09-09 Thread TW Tones
Bob, 1. Is there a simple concatenation operator, like & or + that can be used > to concatenate strings? I know that a macro can do it but that seems very > confusing to a simple mind like me. 1. Concatenation There are many ways to concatenate with tiddlywiki, although for good reasons in