2019-09-22 01:59:48 +04:00
|
|
|
// Test PascaLIGO boolean operators
|
|
|
|
|
2019-05-13 00:56:22 +04:00
|
|
|
function or_true (const b : bool) : bool is
|
|
|
|
begin skip end with b or True
|
|
|
|
|
|
|
|
function or_false (const b : bool) : bool is
|
|
|
|
begin skip end with b or False
|
|
|
|
|
|
|
|
function and_true (const b : bool) : bool is
|
|
|
|
begin skip end with b and True
|
|
|
|
|
|
|
|
function and_false (const b : bool) : bool is
|
|
|
|
begin skip end with b and False
|
2019-09-24 23:18:07 +04:00
|
|
|
|
|
|
|
function not_bool (const b: bool) : bool is
|
|
|
|
begin skip end with not b
|