Testing variables in if-statement
I am looking forward to test the content of an variable in an if-statement. Reading a lot of manuals and starting the forum's search does not provide any results to me...
My idea is to adapt a style to have an output depending on the value of the variable, e.g.:
Variable genre contains the value "Ph.D. Thesis". For English publications this value is ok, but for German publications I prefer "Dissertation". But I do not want to change my database every time and therefore I am looking for a style-based solution with one style for English publications and one for German ones.
Is there any way to express something like <if (variable="genre")="Ph.D. Thesis"> with CSL conform syntax?
My idea is to adapt a style to have an output depending on the value of the variable, e.g.:
Variable genre contains the value "Ph.D. Thesis". For English publications this value is ok, but for German publications I prefer "Dissertation". But I do not want to change my database every time and therefore I am looking for a style-based solution with one style for English publications and one for German ones.
Is there any way to express something like <if (variable="genre")="Ph.D. Thesis"> with CSL conform syntax?
-
bdarcusNo. There have been previous discussions here about testing for values, and you're unlikely to see this support in CSL.