Hi, Is there an elegant way to achieve a conditional define? something like this:
if (test)
A = 0
else
A = 1
do something with A :-)
More or less this is what I tried, and it works:
export fn "\
ifelse { test }
{
define A 0
\\$@
}
define A 1
\\$@"
execlineb -S0 -c ${fn}
s6-echo ${A}
But...I firmly believe that there is a much more elegant way to do this!
Thanks,
