I have now my macro, and it is working so far: \define biv(bbook,bchapter,bverse1,bverse2) ($bbook$ $bchapter$, $bverse1$ – $bverse2$) <$tiddler tiddler="$bbook$ $bchapter$"> <$list variable="line" filter= "[all[tiddlers]fields[]nsort[title]]+[range[$bverse1$,$bverse2$]]"> <tr style="background-color:Ivory;"> <td style="color:blue;width:2em;text-align:center"><<line>> </td><td><$transclude field=<<line>> /></td> </tr> </$list> </$tiddler> \end
But, sometimes the variable "bverse2" will remain empty, because only one single verse is needed. In this case, "range" will render an error, witch I'd like to avoid. I'd like to have something like this: if the variable "bverse2" remains empty, execute one block of commands, else go to a second bloc of commands. I tried the SetWidget and the Conditional Variable Assignment, but I didn't manage to make it work. Can you point me in the right direction, please? -- You received this message because you are subscribed to the Google Groups "TiddlyWikiDev" group. To unsubscribe from this group and stop receiving emails from it, send an email to [email protected]. To view this discussion on the web visit https://groups.google.com/d/msgid/tiddlywikidev/056e3dd0-376f-450f-85ee-561590e2a58e%40googlegroups.com.
