home *** CD-ROM | disk | FTP | other *** search
/ Chip 1998 March / CHIPCD_3_98.iso / software / share / sharmies / unixdos / data.z / ifelse.m4 < prev    next >
Text File  |  1997-11-18  |  415b  |  13 lines

  1. define(morethan10,$1 is `ifelse(substr(eval($1-10),0,1),-,smaller than 10,10 or larger)')
  2. morethan10(9)
  3. morethan10(10)
  4. morethan10(11)
  5. define(checkfora,'$1' `ifelse(substr($1,0,1),a,starts with a,no starting a)')
  6. checkfora(a begin)
  7. checkfora(begin)
  8. checkfora()
  9. define(mymacro,`ifelse($1,match,found first match,$1,alternative,an alternative,unknown)')
  10. mymacro(match)
  11. mymacro(alternative)
  12. mymacro(blabla)
  13.