3 ms·
I think you're meant to read "trueVal" as "the value I want n to have if expr is true", not as literally true. And vice versa.
by unwind 14y ago
I think you're meant to read "trueVal" as "the value I want n to have if expr is true", not as literally true. And vice versa.
- jksmith 14y agoshould be easy enough to do a "choose" stmt in golang, stolen from a business lang called Clarion, but expanded to include closures: n = choose(expr,14,choose(expr2,15,some code that returns something))