I think this is handled like function named Not:
If Not(True) Then
And this is what you are trying to do:
If Not (True) Then
Or just:
If Not True Then
Jussi
On Fri, Jan 2, 2015 at 2:38 AM, Lewis Balentine wrote:
> My Apologies, I was trying to keep the message short and to the point:
>
> '
>> The error is not the NOT it's the missing () <<
Actually the error turns out to be "EXTRA" (Parenthesis).
The following two lines do not produce the error:
If Not True Then Print "False" Else Print "True"
If Not TestFunk() Then Print "False" Else Print "True"
It was my mistaken impresio
My Apologies, I was trying to keep the message short and to the point:
' Gambas module file
' Project IfNot
Public Sub Main()
' The following line Prints "False"
If TestFunk() Then Print "True" Else Print "False"
' The following line prints "False"
If TestFunk() = False Then Print "Fa
On Fri, 02 Jan 2015, adamn...@gmail.com wrote:
> On Thu, 1 Jan 2015 23:13:20 +0100
> Tobias Boege wrote:
>
> > On Thu, 01 Jan 2015, Lewis Balentine wrote:
> > > If I use "NOT" in an "IF" statement with any boolean (function or value)
> > > then I get an error. example:
> > >
> > > If NOT (Boole
On Thu, 1 Jan 2015 23:13:20 +0100
Tobias Boege wrote:
> On Thu, 01 Jan 2015, Lewis Balentine wrote:
> > If I use "NOT" in an "IF" statement with any boolean (function or value)
> > then I get an error. example:
> >
> > If NOT (BooleanFuntion) then Do this
> > unknown identifier: NOT
> >
> > Am
On Thu, 01 Jan 2015 16:07:10 -0600
Lewis Balentine wrote:
> If I use "NOT" in an "IF" statement with any boolean (function or value)
> then I get an error. example:
>
> If NOT (BooleanFuntion) then Do this
> unknown identifier: NOT
>
> Am I mistaken in thinking that one should be able to use t
On Thu, 01 Jan 2015, Lewis Balentine wrote:
> If I use "NOT" in an "IF" statement with any boolean (function or value)
> then I get an error. example:
>
> If NOT (BooleanFuntion) then Do this
> unknown identifier: NOT
>
> Am I mistaken in thinking that one should be able to use the NOT
> operat
If I use "NOT" in an "IF" statement with any boolean (function or value)
then I get an error. example:
If NOT (BooleanFuntion) then Do this
unknown identifier: NOT
Am I mistaken in thinking that one should be able to use the NOT
operator in this manner ?
I can get around this by changing the s