On 11/07/2015 19:44, Daniel Brockman wrote:
> What's the easiest way to express "x or y" or "x and y" in a way that plays well with execline?
You can express "x and y" by sequencing ifs :
if { x } if { y }
You can express "x or y" as "!(!x and !y)" :
if -n { if -n { x } if -n { y } }
If that doesn't answer your question, please give the sequence of
operations you want to achieve. execline is imperative, not functional,
so how best to accomplish something depends on several factors - for
instance, whether you need else clauses or not.
--
Laurent
Received on Sat Jul 11 2015 - 19:33:15 UTC