realbasic-nug
[Top] [All Lists]

Can I, Pretty Please???

To: REALbasic Network Users Group <realbasic-nug at lists dot realsoftware dot com>
Subject: Can I, Pretty Please???
From: Jim Wagner <wagnerj at proaxis dot com>
Date: Fri, 28 Jun 2002 21:44:47 -0700
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

Jim Wagner
Oregon Research Electronics
---------------------------------------------------------
wagnerj at proaxis dot com            Tangent, Oregon 97389
KA7EHK at KC7KFE dot OR dot USA dot NOAM      near Corvallis OR, home of
ka7ehk at yahoo dot com               Oregon State University
----------------------------------------------------------
A computer without Windows is like a cake without mustard. - anonymous





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