realbasic-nug
[Top] [All Lists]

Re: Can I, Pretty Please???

To: REALbasic Network Users Group <realbasic-nug at lists dot realsoftware dot com>
Subject: Re: Can I, Pretty Please???
From: Kevin Ballard <kevin at sb dot org>
Date: Sat, 29 Jun 2002 01:08:39 -0400
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/



<Prev in Thread] Current Thread [Next in Thread>