Boolean values: Difference between revisions
Content added Content deleted
Line 1,142: | Line 1,142: | ||
See https://wiki.freepascal.org/Boolean |
See https://wiki.freepascal.org/Boolean |
||
While you can assign values to true and false, it has now nothing to do with the boolean values.... |
|||
Try with this function: |
|||
FUNCTION IsNatural ( CONST num: VARIANT ): BOOLEAN; |
|||
BEGIN |
|||
IsNatural := ( num > 0 ); |
|||
END; |
|||
</lang> |
</lang> |