Re: [Csnd-dev] is this also a new-style UDO issue?

joachim heintz <[email protected]> Sat, 27 Sep 2025 10:00:11 +0900
Newsgroups gmane.comp.audio.csound.devel
Message-ID <[email protected]>
it seems that it is only an issue (swapping true and false) for booleans.
this works:

opcode one3a():(k)
   ans:k init 1
   xout(ans)
endop

instr 1
   if one3a() == 1 then
     printks("True\n",0)
   else
     printks("False\n",0)
   endif
   turnoff
endin


On 27/09/2025 09:51, joachim heintz wrote:
> opcode one3(arrr:k[]):(b)
>    ans:b init true
>    //here is of course other code
>    xout(ans)
> endop
> 
> instr 1
>    a:k[] = [1,1,1]
>    if one3(a) then
>      printks("True\n",0)
>    else
>      printks("False\n",0)
>    endif
>    turnoff
> endin
> 
> it should print "True" but it prints "False".
> it works when i write
>    if true then
>     ...
> 
> by the way: how can i print the boolean value?
> 
>      joachim