boolean in OCaml

"[email protected] [ocaml_beginners]" <[email protected]>
Newsgroups gmane.comp.lang.ocaml.beginners
Message-ID <[email protected]>
Hi,
 I defined a boolean variable in a .ml file using OCaml like that:
 let whilecmd = false
 and somewhere I assign true to this boolean variable :
 whilecmd=true;  (It gives a warning : this expression should have type unit)
 and it doesn't work. The boolean whilecmd is still false.
 Can anyone help me?
 

 Thanks
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.