else and else-if not working
Hi all
I'm having trouble getting else and else-if arguments (right term?) to work. For example, in the code below, the if argument is working fine - if there's a volume number in the library entry, it implements; but the else argument isn't - if there's no volume number it doesn't produce "Why not?"
Why not?
Thanks for all tips. I'm sure it's something very basic that I've missed, but it's happening a lot and getting frustrating.
I'm having trouble getting else and else-if arguments (right term?) to work. For example, in the code below, the if argument is working fine - if there's a volume number in the library entry, it implements; but the else argument isn't - if there's no volume number it doesn't produce "Why not?"
Why not?
Thanks for all tips. I'm sure it's something very basic that I've missed, but it's happening a lot and getting frustrating.
This is an old discussion that has not been active in a long time. Before commenting here, you should strongly consider starting a new discussion instead. If you think the content of this discussion is still relevant, you can link to it from your new discussion.
Upgrade Storage
<choose>
<if variable="volume" match="any">
<text macro="date" prefix=" (" suffix=")" />
</if>
<else>
<text term="Why not?" />
</else>
</choose>
<text value="xyz"/>if you want to just write random text. Terms are specifically defined entities (pretty sure the above would also have thrown an error on validation -- always make sure your CSL validates, otherwise there's a good chance you'll see weird things)Thanks.
Caspar