Matrix | List of lists where each one has the same number of elements. | |
FirstRowOption | Optional. Put --first-row-is-header if you want the first row to use | tags. |
---|
Condition | Error Code | Error Message |
---|---|---|
Contents of variable are invalid. | -11 | Variable $VarName has invalid value $Value. |
Note that if you input an empty string then this command will not throw an error but will return a table without any rows or columns.
% set MyMatrix {{1 2 3} {4 5 6} {7 8 9}}
{1 2 3} {4 5 6} {7 8 9}
% Matrix2HtmlTable $MyMatrix <table> <tr> <td>1</td><td>2</td><td>3</td> </tr> <tr> <td>4</td><td>5</td><td>6</td> </tr> <tr> <td>7</td><td>8</td><td>9</td> </tr> </table>