Yo Mark yes i made mistake because of stupid talk about things we know.
Both me and Paul and i don't know why he insist on this ..
This BOOL or BOOLEAN already exists in Oxygen Basic compiler
and i am not sure in some others too (maybe VB)
so....what a heck is this time with you ?
So i must repeat again ...I just agree with the statement above..
and your insinuation that i don't know or don't understand is really silly..
and you UNDERSTAND
Mark yeah
print BOOL(1<2) -> TRUE or -1( on Windows) or if author of progrmming language decide
can be 1.
Also you can easy change booleans to integers because are integers ... 0,1
I have used many times so called boolean logic to confirm TRUE or FALLSE.
simple example in o2
both functions are valid without any problem ,only difference is what is TRUE ( -1 or 1)
depend how you define them:
FUNCTION isdigit(S AS STRING) AS
INT If (asc(S)>47 And asc(S)<58) Or asc(S)=46
Return 1
End if
Return 0
END FUNCTION
FUNCTION isdigit(S AS STRING) AS
BOOL If (asc(S)>47 And asc(S)<58) Or asc(S)=46
Return TRUE
End if
Return FALSE
END FUNCTION
..so ZXdunny do you maybe need compiled example
pih..