[futurebasic] Re: [FB] Some C to FB

Message: < previous - next > : Reply : Subscribe : Cleanse
Home   : June 2013 : Group Archive : Group : All Groups

From: Brian S <fblistserve@...>
Date: Sun, 9 Jun 2013 16:19:11 -0700
On Jun 9, 2013, at 2:54 PM, Brian S <fblistserve@...> wrote:

> if ( p > threshold ) then dstdata[y * w + x] = 1. else dstdata[y * w + x] = 0.
Noticed the code at the supplied link shows dstdata is a pointer to a float, so the above FB translation for the array is wrong. It does, however, capture the essence of the ternary operator.

Brian S.