I know it's easy enough to do:
Code: Select all
Procedure Not(expression)
If expression
ProcedureReturn #FALSE
Else
ProcedureReturn #TRUE
Endif
EndProcedure
If Not(OpenConsole())...
Just a tiny wish.

Russell
Code: Select all
Procedure Not(expression)
If expression
ProcedureReturn #FALSE
Else
ProcedureReturn #TRUE
Endif
EndProcedure
If Not(OpenConsole())...
We already have ! for XOR :)Amiga5k wrote:Or possibly using '!' instead of Not (too C-Like?)
Code: Select all
if <expression> = 0 ; same as 'if NOT <expression>'
Code: Select all
found=search_file_for_string(file$,a$)
If NOT found
etc
etc
EndIf
Code: Select all
if <expression> = 0 ; same as 'if NOT <expression>'
[\code]
[\quote]
I do already (although I prefer If <expression> = #FALSE), but I got used to 'Not' in other languages and kinda liked it. It's simple enough to write a Not procedure, but just thought I'd throw this idea out there, too.
And Tinman, you're right about the '!' operator :( No big deal. I just use the Not procedure to do it:
[code]
If Not(<expression>)
...
Else
...
EndIf
[\code]
Russell