'if' turns out to be an incomplete spec, eh? You can use

   if =: ^:
   a =. 5
   1 + if (>&0) a
6
   1 + if (>&10) a
5

Henry Rich

On 4/13/2022 9:27 AM, Raul Miller wrote:
On Wed, Apr 13, 2022 at 9:20 AM 'Rob B' via Programming
<programm...@jsoftware.com> wrote:
Thanks, that's all good stuff but what I found was on the lines of

if =: 3 : ….    an actual verb definition.
That might have been
https://code.jsoftware.com/wiki/User:Ian_Clark/InspectingValues

I hope this helps,



--
This email has been checked for viruses by AVG.
https://www.avg.com

----------------------------------------------------------------------
For information about J forums see http://www.jsoftware.com/forums.htm

Reply via email to