Hi Mans This kind of conditional can be fairly simply achieved using the SetWidget -- the widget will choose either a 'value' or an 'emptyValue' depending upon the output of the filter expression.
<$set name="myVariable" filter="[all[current]field:gender[male]]" value="It's male" emptyValue="It's not male"> <$text text=<<myVariable>>/> </$set> regards On Friday, 10 June 2016 21:50:25 UTC+2, Måns wrote: > > Hi TwWizards > > I have a radio button which sets a value of a field "gender" to either > "male" or "female". > > Now I want to create 4 or 5 macros which will show/wikify the value as > different results. > > I guess some kind of "if evaluation" is needed? > > Macro 1 should show male as "he" and female as "she" I think it should > look like this <<he>> or <<she>> > Macro 1b should show male as "He" and female as "She" <<He>> <<She>> > > Macro 2 should show male as "him" and female as "her" <<him>> <<her>> > Macro 2b should show male as "Him" and female as "Her" <<Him>> <<Her>> > > I guess creating macros like this is a better and more simple way to > achieve what I described in this post > <https://groups.google.com/d/topic/tiddlywiki/XlkKA4WDbDo/discussion>. > > Cheers Måns Mårtensson > -- You received this message because you are subscribed to the Google Groups "TiddlyWiki" group. To unsubscribe from this group and stop receiving emails from it, send an email to [email protected]. To post to this group, send email to [email protected]. Visit this group at https://groups.google.com/group/tiddlywiki. To view this discussion on the web visit https://groups.google.com/d/msgid/tiddlywiki/03f05969-e3d0-4bbd-a766-2eb4a5a5a16b%40googlegroups.com. For more options, visit https://groups.google.com/d/optout.

