ALT Linux Team development discussions
 help / color / mirror / Atom feed
* [devel] Условия в спеке
@ 2011-02-02 14:35 Boris Gulay
  2011-02-02 20:19 ` Afanasov Dmitry
  0 siblings, 1 reply; 2+ messages in thread
From: Boris Gulay @ 2011-02-02 14:35 UTC (permalink / raw)
  To: devel

Хочу сделать макрос (вернее, делать его буду не я, но это детали), 
который можно было бы вызывать с двумя и тремя аргументами. В 
зависимости от количества аргументов он должен разворачиваться с тот или 
иной код.

Такой вариант будет работать как я хочу?

%if "$3" \
   <код для варианта с тремя параметрами> \
%else \
   <код для варианта с двумя параметрами> \
%endif

Т.е. я хочу знать, будет ли пустая строка распознана как ложь в макросе if?


^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2011-02-02 20:19 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2011-02-02 14:35 [devel] Условия в спеке Boris Gulay
2011-02-02 20:19 ` Afanasov Dmitry

ALT Linux Team development discussions

This inbox may be cloned and mirrored by anyone:

	git clone --mirror http://lore.altlinux.org/devel/0 devel/git/0.git

	# If you have public-inbox 1.1+ installed, you may
	# initialize and index your mirror using the following commands:
	public-inbox-init -V2 devel devel/ http://lore.altlinux.org/devel \
		devel@altlinux.org devel@altlinux.ru devel@lists.altlinux.org devel@lists.altlinux.ru devel@linux.iplabs.ru mandrake-russian@linuxteam.iplabs.ru sisyphus@linuxteam.iplabs.ru
	public-inbox-index devel

Example config snippet for mirrors.
Newsgroup available over NNTP:
	nntp://lore.altlinux.org/org.altlinux.lists.devel


AGPL code for this site: git clone https://public-inbox.org/public-inbox.git