Control table: Difference between revisions

Content deleted Content added
Multi-dimensional table: Use section name that matches the content (it doesn't mention multi-dimensional array)
Table content: remove fluff
Line 65:
A control table can act like a [[switch statement]] or more generally as a nested [[if-then-else]] construct that includes [[logical predicate]]s (using [[Boolean algebra (logic)|boolean]] style [[logical conjunction |AND]]/[[logical disjunction |OR]] conditions) for each case. Such as control table provides for a language-independent implementation of what otherwise is a language-dependent construct.
 
===Table content=Content==
A control table essentially embodies the '[[essence]]' of a conventional program,; stripped of its programming language syntax and platform dependent componentsaspects; (e.g. {{mono|IF/THEN DO.., FOR.., DO WHILE.., SWITCH, GOTO, CALL}}) and 'condensed' to its variables (e.g. input1), values (e.g. 'A','S','M'data and 'D'),implied and subroutine identities (e.g. 'Add','subtract,..' or #1, #2,..)logic. The structuremeaning of the table itselfincludes typicallyimplied ''implies''operations theinstead (default)of logical operations involved –being suchexplicit as 'testingin fora equality',more performingtypical a subroutine and 'next operation' or following the default sequence (rather than these being explicitly stated within program statements – as required in other [[programming paradigm]]s).
 
ATypically, a multi-dimensional control table will normally, as a minimum, containcontains value/action pairs and may additionally contain operators and [[type system |type]] information such as, the ___location, size and format of input or output data, whether [[data conversion]] (or other [[run time (program lifecycle phase)|run-time]] processing nuances) is required before or after processing (if not already implicit in the function itself). The table may or may not contain [[array index |indexes]] or relative or absolute [[pointer (computer programming)|pointer]]s to generic or customized primitives or [[subroutine]]s to be executed depending upon other values in the "row".
 
The table illustrated below applies only to 'input1' since no specific input is specified in the table.
 
{| class="wikitable"
|+
|+ conditions and actions implied by structure
! (implied) IF = || (implied) perform
|-