- Open the Asciidoctor editor.
- type this following Asciidoctor code in the Asciidoctor editor:
.Decision Table / Cause-Effect [options="header,footer"] |=== |Decision Table|Rule 1|Rule 2|Rule 3|Rule 4 5+^|**Conditions** |C1 - Male ^| F ^| F ^| T ^| T |C2 - Senior Citizen ^| F ^| T ^| F ^| T 5+^|**Actions** |A1 - Interest Rate 10% | | | ^| x |A2 - Interest Rate 5% ^| x ^| x ^| x | |===
- Result, similar like this:
Decision Table | Rule 1 | Rule 2 | Rule 3 | Rule 4 |
---|---|---|---|---|
Conditions |
||||
C1 - Male |
F |
F |
T |
T |
C2 - Senior Citizen |
F |
T |
F |
T |
Actions |
||||
A1 - Interest Rate 10% |
x |
|||
A2 - Interest Rate 5% |
x |
x |
x |
Notes
- AsciiDoctor syntax code .Decision Table / Cause-Effect is for table caption.
- AsciiDoctor syntax code 5+^|**Conditions** is for merge cells, center align, and for bold the text.
< to learn Category Table Design in AsciiDoctor, click on Category Table Design In AsciiDoctor
to learn Data Table in AsciiDoctor, click on Data Table In AsciiDoctor >
Bibliography
https://docs.asciidoctor.org/
https://www.baeldung.com/
Tidak ada komentar:
Posting Komentar