Beheld Basal Software Tutorials - Tutorial Addendum - Allegory and Argumentation Operations
| |
(Continued from antecedent part...)
Logical Operations
Logical operations are operations that:
- Operates on one Boolean operand or two Boolean operands.
- Produces a Boolean amount by applying the analytic operation defined by the operator.
There are 4 analytic operations accurate in VB:
- Logical add (Add): Consistent (True) if both operands are (True).
- Logical or (Or): Consistent (True) if one of the operands is (True).
- Logical not (Not): Consistent (True) if the operand is (False).
- Logical xor (Xor): Consistent (True) if one and alone one operand is (True).
To appearance you how analytic operations work, I wrote the afterward script, logical_operation.html:
<html>
<body>
<!-- logical_operation.html
Absorb (c) 2006 by Dr. Yang. http://www.yang.com/
-->
<pre>
<script language="vbscript">
document.writeln(True And True)
document.writeln(True Or True)
document.writeln(Not True)
document.writeln(True Xor True)
</script>
</pre>
</body>
</html>
Here is the output:
True
True
False
False
No surprises in the output.
Conclusions
- VB supports 6 numeric comparisons.
- VB supports 4 analytic operations.
|
logical, operations, document, script, writeln, resulting, operand, boolean, operands, operation, , document writeln, resulting true, true document, writeln true, logical operations, logical operation, document writeln true, true document writeln, logical operation html, tutorial notes comparison, tutorials tutorial notes, basic script tutorials, script tutorials tutorial, visual basic script, |
Also see ...
This affiliate describes:"For ... Next" Statements"For ... Next" Account Example"While" Statements"While" Account Example"Do ... Loop" Statements
(Continued from antecedent part...)Here is the output: Found a prime number: 3Found a prime number: 5Found a prime number: 7Found a prime number: 11Found a prime number: 13Found a pri
(Continued from antecedent part...)"Do ... Loop" StatementsPersonally, I anticipate that two types of loops, "For ... Next" and "While", are abundant for any bend programming situations. But t
This affiliate describes:Long Accumulation OperationsDouble Amphibian Amount OperationsNumeric Operations on Additional Data TypesNotes and samples in t
(Continued from antecedent part...)Double Amphibian Amount OperationsDouble amphibian amount operations are algebraic operations that: Operates on two bifold amphibian am
This affiliate describes:What Is a Procedure?Defining and Invoking Action ProceduresFunction Action ExampleDefining and Invoking Sub ProceduresSub Action
(Continued from antecedent part...)Function Action ExampleTo advice you accept the abstraction of action procedure, I wrote the afterward the example, function_f2c.html: <
(Continued from antecedent part...)Sub Action ExampleHere is a abbreviate archetype of subroutines, function_sub.html: <html><body><! function
(Continued from antecedent part...)Example Casual Arguments by ReferenceTo see how casual arguments by advertence works, I wrote the afterward example, function_swap_by_ref.html:
(Continued from antecedent part...)Here is the output: Test 1: Swapping two literals by value Afore Sub: Angel Orange In Sub: Orange Apple Afterwards Sub: Angel Orange