NAME
Matrix2HtmlTable — Takes a list of lists, returns string encoding HTML table.
SYNOPSIS
Matrix2HtmlTable MatrixValue ?FirstRowOption?
DESCRIPTION
Return Value
String encoding HTML table. Each row corresponds to one of the lists.
Arguments
MatrixList of lists where each one has the same number of elements.
FirstRowOptionOptional. Put --first-row-is-header if you want the first row to use tags.
Error Conditions
ConditionError CodeError Message
Contents of variable are invalid. -11 Variable $VarName has invalid value $Value.
More Info
A matrix here is simply a list of lists, where each of the lists has the same number of elements.

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.

EXAMPLES
% 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>
SEE ALSO
IsMatrix, PrintMatrix
KEYWORDS
list