Command/ifparameters

Unofficial ConTeXt Wiki mirror

Last modified: 2025-12-14

Summary

The command \ifparameters is used to check how many (optional) parameters are given to a macro.

Settings

\ifparameters ... \else ... \fi
... true
\else delimiter
... false
\fi delimiter

Description

This is an \ifcase where the number is the number of parameters passed to the current macro. Of course, when used in a macro one should be aware of the fact that another macro call will change this number.

Examples

Notes

See also

Help from ConTeXt-Mailinglist/Forum

All issues with: