fb:porticula NoPaste
"boolean" test unter linux
Uploader: | Michael |
Datum/Zeit: | 15.09.2007 14:38:31 |
#define false 0
#define true (not false)
?"True:" &True
?"Not True:" &(Not True)
?"False:" &False
?"Not False:" &(Not False)
?"1=1(should be TRUE):" &(1=1)
?"!1=1(should be FALSE):" &(Not 1=1)
?"1=0(should be FALSE):" &(1=0)
?"!1=0(should be TRUE):" &(Not 1=0)
?"(1=1)=True:" &((1=1)=TRUE)
/'
Ausgabe:
True:-1
Not True:0
False:0
Not False:-1
1=1(should be TRUE):-1
!1=1(should be FALSE):0
1=0(should be FALSE):0
!1=0(should be TRUE):-1
(1=1)=True:-1
'/