http://qs1969.pair.com?node_id=549292


in reply to AND OR

I'm not sure what you mean "like shell scripting"... Conceptually, they're the same idea, although their implementation details are incredibly different.

Your example, if (($val > 5) && ($val < 10)) { ... } probably does what you expect: execute the "..." part if $val is numerically between 5 and 10, exclusive.

Notes:

Just my 2 cents CDN.