[v561] x = Not something ;<-- Fail?

Just starting out? Need help? Post your questions and find answers here.
User avatar
skywalk
Addict
Addict
Posts: 3994
Joined: Wed Dec 23, 2009 10:14 pm
Location: Boston, MA

[v561] x = Not something ;<-- Fail?

Post by skywalk »

Code: Select all

Procedure.i Do1()
  ProcedureReturn 1
EndProcedure
Define.i ok, ok2
ok = Not ok2
ok = Not Do1()
This should be a bug in documentation if only allowed in IF statements?

Using this for now...

Code: Select all

Procedure.i Nott(IntVal.i)
  If Bool(IntVal)
    ProcedureReturn 0
  Else
    ProcedureReturn 1
  EndIf
EndProcedure
The nice thing about standards is there are so many to choose from. ~ Andrew Tanenbaum