Thanx Henri for answer.
Maybe I have been explaining wrong my problem. I would need a variant without a
parameter and concurrently without braces. Command without braces swallows the
break of the paragraph.
\def\Command#1%
{\expdoifelse{#1}{}{100}{#1}}
\starttext
1. \Command{5} % OK
2. \Com
On Tue, 2017-06-27 at 08:58 +, Jaroslav Hajtmar wrote:
> Hello ConTeXist.
> I'm not able to solve a macros problem with one optional argument. I need the
> macro to return a
> value that can be used as a dorecurse loop parameter.
> Is there possibility create macro with optional parameter and
Hello ConTeXist.
I'm not able to solve a macros problem with one optional argument. I need the
macro to return a value that can be used as a dorecurse loop parameter.
Is there possibility create macro with optional parameter and parameter is
concurrently inside in braces? (in nonsquare brackets)?