Page 1 of 1

truth table Give some help in "&"

Posted: Fri Sep 21, 2012 6:53 pm
by Matheusfarias
need to make a truth table my code works this way: :P

Code: Select all

#Include "Fivewin.ch"
 #command ~  => ! 
 #command ^  => .AND. 
 #command V  => .or. 
 #command <a> &'<->' <b> => if ( a=b , .t. , .f. ) 
 #command <a> -> <b> => if ( b , if ( a , .t. , .t.) , if ( a , .f. , .t. ))
FUnction main()

vpropos:="q ^ b"
 
if &vpropos  // Error
   msginfo("1")
endif

if q ^ b // no error
   msginfo("1")
endif

         
 
I read on some forums and saw that the macro does not work with the command # and # translante
could someone give me an idea, I need a job for the university


:D :D :D :D :D :D

Re: truth table Give some help in "&"

Posted: Fri Sep 21, 2012 9:07 pm
by Antonio Linares
Try with #define instead of #command and without the arrow