TeleFlow BasicScript BAndBOrBXorBNot
From TeleFlow
(Difference between revisions)
(New page: The logical BAND, BOR, BXOR, BNOT bitwise operators and ^ (exponentiate) are logical operators performing element-wise logic:<br> <br> <b>BAND:</b> returns the bitwise AND operator result ...) |
|||
Line 1: | Line 1: | ||
The logical BAND, BOR, BXOR, BNOT bitwise operators and ^ (exponentiate) are logical operators performing element-wise logic:<br> | The logical BAND, BOR, BXOR, BNOT bitwise operators and ^ (exponentiate) are logical operators performing element-wise logic:<br> | ||
<br> | <br> | ||
+ | ===Syntax=== | ||
<b>BAND:</b> returns the bitwise AND operator result from both left and right numerical values.<br> | <b>BAND:</b> returns the bitwise AND operator result from both left and right numerical values.<br> | ||
<br> | <br> | ||
Line 9: | Line 10: | ||
<b>BNOT:</b> returns the 32-bit bitwise NOT operator result.<br> | <b>BNOT:</b> returns the 32-bit bitwise NOT operator result.<br> | ||
<br> | <br> | ||
- | ^: returns the exponentiate result of the numerical left value exponentiate numerical right value.<br> | + | <b>^</b>: returns the exponentiate result of the numerical left value exponentiate numerical right value.<br> |
<br> | <br> | ||
- | + | ===Related Steps=== | |
- | + | [[Image:Iv_517.gif]] [[TeleFlow_Step_0517|BasicScript]]<br> | |
- | BasicScript | + | |
- | + | ||
- | + | ||
- | + | ||
- | + | ||
- | + | ||
- | + | ||
- | + | ||
- | + | ||
- | + | ||
- | + | ||
- | + | ||
- | + | ||
- | + | ||
- | + | ||
- | + | ||
- | + | ||
<br> | <br> | ||
+ | ===Examples=== | ||
+ | :{| border="0" cellspacing="0" cellpadding="2" align="left" | ||
+ | ! BasicScript code | ||
+ | ! Result | ||
+ | |- | ||
+ | | band (7,5) | ||
+ | | 5 | ||
+ | |- | ||
+ | | bor (7,5) | ||
+ | | 7 | ||
+ | |- | ||
+ | | bxor (7,5) | ||
+ | | 2 | ||
+ | |- | ||
+ | | bnot (7) | ||
+ | | -8 | ||
+ | |- | ||
+ | | 3^2 | ||
+ | | 9 | ||
+ | |- | ||
+ | |} |
Current revision
The logical BAND, BOR, BXOR, BNOT bitwise operators and ^ (exponentiate) are logical operators performing element-wise logic:
Syntax
BAND: returns the bitwise AND operator result from both left and right numerical values.
BOR: returns the bitwise OR operator result from both left and right numerical values.
BXOR: returns the bitwise XOR operator result from both left and right numerical values.
BNOT: returns the 32-bit bitwise NOT operator result.
^: returns the exponentiate result of the numerical left value exponentiate numerical right value.
Related Steps
Examples
BasicScript code Result band (7,5) 5 bor (7,5) 7 bxor (7,5) 2 bnot (7) -8 3^2 9
