home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Chip 1998 March
/
CHIPCD_3_98.iso
/
software
/
share
/
sharmies
/
unixdos
/
data.z
/
ifelse.m4
< prev
next >
Wrap
Text File
|
1997-11-18
|
415b
|
13 lines
define(morethan10,$1 is `ifelse(substr(eval($1-10),0,1),-,smaller than 10,10 or larger)')
morethan10(9)
morethan10(10)
morethan10(11)
define(checkfora,'$1' `ifelse(substr($1,0,1),a,starts with a,no starting a)')
checkfora(a begin)
checkfora(begin)
checkfora()
define(mymacro,`ifelse($1,match,found first match,$1,alternative,an alternative,unknown)')
mymacro(match)
mymacro(alternative)
mymacro(blabla)