FreeBASIC <-> Object Pascal | Logical or
FreeBASIC Used keywords: or
or
Description
par1 or par2
Input
- par1 - Logical value
- par2 - Logical value
Output
- Result - Logical value
Examples
FreeBASIC
In the source code you can find the equivalent of the above table, for easier orientation at the end of each line is a comment which shows the result.a1 = false or false ' a1 = false
a2 = false or true ' a2 = true
a3 = true or false ' a3 = true
a4 = true or true ' a4 = true
FreeBASIC
Even one example in what situations we can use the operation logical or:(b or c) or a
a or true
a>1 or a<100
.
Object Pascal Used keywords: or
or
Description
par1 or par2
Input
- par1 - Logical value
- par2 - Logical value
Output
- Result - Logical value
Examples
Object Pascal
In the source code you can find the equivalent of the above table, for easier orientation at the end of each line is a comment which shows the result.a1 := false or false; // a1 = false
a2 := false or true; // a2 = true
a3 := true or false; // a3 = true
a4 := true or true; // a4 = true
Object Pascal
Even one example in what situations we can use the operation logical or:(b or c) or a
a or true
a>1 or a<100
FreeBASIC Used keywords: orelse
OrElse
Description
par1 OrElse par2
Input
- par1 - Logical value
- par2 - Logical value
Output
- Result - Logical value
Examples
FreeBASIC
In the source code you can find the equivalent of the above table, for easier orientation at the end of each line is a comment which shows the result.a1 = false OrElse false ' a1 = false
a2 = false OrElse true ' a2 = true
a3 = true OrElse false ' a3 = true
a4 = true OrElse true ' a4 = true
FreeBASIC
Even one example in what situations we can use the operation logical or:(b OrElse c) OrElse a
a OrElse true
a>1 OrElse a<100
.
Object Pascal Used keywords: or
or
Description
par1 or par2
Input
- par1 - Logical value
- par2 - Logical value
Output
- Result - Logical value
Examples
Object Pascal
In the source code you can find the equivalent of the above table, for easier orientation at the end of each line is a comment which shows the result.a1 := false or false; // a1 = false
a2 := false or true; // a2 = true
a3 := true or false; // a3 = true
a4 := true or true; // a4 = true
Object Pascal
Even one example in what situations we can use the operation logical or:(b or c) or a
a or true
a>1 or a<100
You can find it in the following collections: logical operators
Logical or in another programming language:
Differences to:
Share