Re: [Jgeneral] Unexpectedly True

2020-06-21 Thread 'Pascal Jasmin' via General
"tacit if" behaves more rationally... returns/keeps the null. 'no'"_`('yes'"_)@.] '' 'no'"_`('yes'"_)@.({.!.0) '' no On Saturday, June 20, 2020, 07:25:48 p.m. EDT, Paul Jackson wrote: I've grown accustomed to following some verbs with '' because there's no way to write a niladic

Re: [Jgeneral] Unexpectedly True

2020-06-20 Thread bill lam
FWIW comparing a number with a literal for equality is not an error but always not equal 0 = 'a' 0 On Sun, Jun 21, 2020, 7:53 AM bill lam wrote: > IIRC if. y do. > is false only if the leading atom of y is 0, otherwise it is true. it > should be already documented in J dictionary help file.

Re: [Jgeneral] Unexpectedly True

2020-06-20 Thread bill lam
IIRC if. y do. is false only if the leading atom of y is 0, otherwise it is true. it should be already documented in J dictionary help file. On Sun, Jun 21, 2020, 7:25 AM Paul Jackson wrote: > I've grown accustomed to following some verbs with '' because there's no > way to write a niladic

Re: [Jgeneral] Unexpectedly True

2020-06-20 Thread Henry Rich
{.!.0 Henry Rich On 6/20/2020 7:25 PM, Paul Jackson wrote: I've grown accustomed to following some verbs with '' because there's no way to write a niladic verb in J. Unfortunately I have a verb that uses its argument to decide whether to update or not. That led me to learn the hard way that ''

[Jgeneral] Unexpectedly True

2020-06-20 Thread Paul Jackson
I've grown accustomed to following some verbs with '' because there's no way to write a niladic verb in J. Unfortunately I have a verb that uses its argument to decide whether to update or not. That led me to learn the hard way that '' is true. try=: 3 : 0 if. y do. 'yes' else. 'no'