Conditional Instruction 'if' consists of:
1. Conditional expression that evaluates to a boolean value (truth or falsehood).
for example: ( o.getA() > 0 ) might be an expression that evaluates to boolean value.
for example: o.containsData() might be expression that evaluates to boolean value.
for example: ( o != null && o.containsData() && o.getA() > 0 ) might be expression that evaluates to boolean value.
2. Instruction to execute in case of truth.
for example: return; // a valueless return statement.
for example: { } // empty instruction.
for example: doSomething(); // function call.
for example { doSomething(1); doSomething(); } // complex instruction consisting of two function calls,
// with similar function signatures.
3. Syntax.
Syntax is keywords, reserved words, building blocks of a programming language..
syntax can be varied depending on Programming Language, but has to be unambiguous.
for example: if (a = 0) then doSomething();
for example: if (a == 0) { doSomething(); }
for example: if ( (a == 0) iff (b > 3) ) { doSomethingUseful() }
See also: Computer Thinking.
I am still learning, so much to consider & experiment with. I hope that as I understand more, ideas explored here will turn into science with great depth.
If you benefited from this blog, you can return favour by helping Lama Ole Nydahl or his friends. Here's list of our Buddhist Centers.
This blog is for buddhist woman I love, and for Lama Ole. Hopefully it will help them even after deaths & rebirths.
Showing posts with label Instruction. Show all posts
Showing posts with label Instruction. Show all posts
Tuesday, 28 January 2020
Subscribe to:
Posts (Atom)