Hello @all,
In my workout-TW I have equipment for exercises, like resistance-bands. These bands I can use in different ways, which gives more or less difficulty to exercises- similar than weight of dumbbells.
So, I have the red band with several fields with the related weight (f.e.: field “red-u-2+8” with the related weight “15” and “red-u-2+7” with the related weight “17” and some more fields like this).
When I now do an exercise, I choose f.e. two resistance bands: The red one & the blue one.
Then I decide, in which weight-config I will use them and write this decision into the field “AdditionalWeight”. Then this field has the value “red-u-2+8 blue-u-1+8”.
My goal is to get the total weight I had in that exercise and to write that sum into another tiddler. >Means: Getting the related field-values (getting the related “15” of the listed field “red-u-2+8” and the same for the blue one), sum all of them and write that sum into another tiddler.
I found some snippets, but do not know, which of them would be the best and above all, how to combine everything. These snippets are:
{{{ [{!!AdditionalWeight}enlist[red-u-2+8]] :then[get[red-u-2+8]] }}}
{{{ [{!!AdditionalWeight}enlist[red-u-1+8]] :then[get[red-u-1+8]] }}}
This gets the values of the listed fields (like “15”). But I have 40 fields like this… ![]()
The summing I could probably do with something like this {{{ [tag[log]get[run]split[ ]sum[]] }}} or this {{{ [tag[log]get[run]enlist-input:raw[]] }}}, but I don’t know how and how to adapt it to my case.
Please help…