033.ifelse   [plain text]

dnl @ ../doc/m4.texinfo:1810: Origin of test
dnl @ Copyright (C) 2006 Free Software Foundation
dnl @ This file is free software; the Free Software Foundation
dnl @ gives unlimited permission to copy and/or distribute it
dnl @ with or without modifications, as long as this notice
dnl @ is preserved.
ifelse(`foo', `bar', `true')
dnl @result{}
ifelse(`foo', `foo', `true')
dnl @result{}true
define(`foo', `bar')
dnl @result{}
ifelse(foo, `bar', `true', `false')
dnl @result{}true
ifelse(foo, `foo', `true', `false')
dnl @result{}false