Re: Boolean operators

From: Laurent Bercot <ska-skaware_at_skarnet.org>
Date: Sat, 11 Jul 2015 21:33:15 +0200

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

This archive was generated by hypermail 2.3.0 : Sun May 09 2021 - 19:38:49 UTC