I need help with a button, I just cannot get why it doesn't work. maybe you can help me
The problem is, that everything works but the second <$action-setfield> in <<theButton>> - I have no clue why
The variables there are all passed as I've checked them.. boh
\define columnicons()
{{$:/plugins/BTC/tiddly-touch/icons!!columns-$(tiddlerWidth)$}}
\end
\define theButton()
<$button class="tc-btn-invisible tc-toolbar-icon tc-toolbar-icon-topleft" tooltip="toggle tiddler width">
<$list filter="[[$(tiddlerWidth)$]!regexp[^0]]">
<$action-setfield $tiddler="$(storyTiddler)$" $field="muuri-tiddler-width" $value="$(nextValue)$" $timestamp="no"/>
<$action-setfield $tiddler="$(nextStoryTiddler)$" $field="muuri-tiddler-width" $value="$(nextNextValue)$" $timestamp="no"/>
</$list>
<$list filter="[[$(tiddlerWidth)$]regexp[^0]]">
<$action-setfield $tiddler="$(storyTiddler)$" $field="muuri-tiddler-width" $value="6" $timestamp="no"/>
</$list>
<<columnicons>></$button>
\end
\define toggle-tiddler-width()
<$set name="tiddlerWidth" filter="[[$(storyTiddler)$]has[muuri-tiddler-width]get[muuri-tiddler-width]regexp[^(0|1|2|3|4|5|6)$]] [[$(storyTiddler)$]has[muuri-tiddler-width]get[muuri-tiddler-width]!regexp[^(0|1|2|3|4|5|6)$]addprefix[0]] [[$(storyTiddler)$]!has[muuri-tiddler-width]addprefix[0]removesuffix[$(storyTiddler)$]]">
<$set name="nextValue" filter="[<tiddlerWidth>next[$:/plugins/BTC/tiddly-touch/Buttons/toggle-tiddler-width]]">
<$set name="nextNextValue" filter="[<nextValue>next[$:/plugins/BTC/tiddly-touch/Buttons/toggle-tiddler-width]]">
<$set name="nextStoryTiddler" filter="[[$(storyTiddler)$]next[$:/StoryList]]">
<<theButton>>
</$set></$set></$set></$set>
\end
<<toggle-tiddler-width>>