[NTG-context] processallactionsinset and default

Wolfgang Schuster schuster.wolfgang at gmail.com
Thu Aug 14 14:44:57 CEST 2014


Am 14.08.2014 um 11:38 schrieb Christoph Reller <christoph.reller at 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



More information about the ntg-context mailing list