Am 14.08.2014 um 11:38 schrieb Christoph Reller <christoph.rel...@gmail.com>:
> Hi! > > The "default" value works well for processaction but apparently does not for > processallactionsinset. What am I missing? > > Example: > > \def\A{A} > \def\XX{} > \def\Un{Un} > > \processaction[\A][A=>Yeah!,default=>Def.,unknown=>Huh?]% > \processaction[\XX][A=>Yeah!,default=>Def.,unknown=>Huh?]% > \processaction[\Un][A=>Yeah!,default=>Def.,unknown=>Huh?] > > \processallactionsinset[\A,\XX,\Un][A=>Yeah!,default=>Def.,unknown=>Huh?] > > Output: > > Yeah!Def.Huh? > Yeah!Huh?Huh? The default value is only used when there is no argument at all. Your example for \processallactionsinset with a list of values where you have empty key (A,,Un) is not supported and because the empty is not in the list you get the argument for unknown. Wolfgang ___________________________________________________________________________________ If your question is of interest to others as well, please add an entry to the Wiki! maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/listinfo/ntg-context webpage : http://www.pragma-ade.nl / http://tex.aanhet.net archive : http://foundry.supelec.fr/projects/contextrev/ wiki : http://contextgarden.net ___________________________________________________________________________________