On 6/29/02 12:44 AM, "Jim Wagner" <wagnerj at proaxis dot com> wrote:
> Hello, NUG -
>
> In C, you can use the boolean result of a conditional expression to assign
> a boolean value. For example, if Flag is declared as a boolean, you can, if
> memory serves correctly (and it might not), write:
>
> Flag = (Num > 10)
>
> Granted, the syntax is a bit different, but can you, in RB, write:
>
> Flag = (Num > 10)
>
> If not, is it worth a feature request? It would save this structure which I
> have been using over and over in many variations,
>
> If X > 10 then
> flag = true
> Else
> flag = false
> End
Yes, it works fine. And it's something that's easily testable.
--
Kevin Ballard
kevin at sb dot org
Email from Korea or China must go to <kevin dot nb at sb dot org>
http://kevin.sb.org/
|