Kamis, 13 Februari 2025

AsciiDoctor Decision Table

  1. Open the Asciidoctor editor.
  2. 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
    |
    |===
  3. Result, similar like this:
Table 1. Decision Table / Cause-Effect
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

Various Other Posts