alias matrix {
var %i = 1, %j
; filling the matrix
while %i < 11 {
%j = 1
while %j < 11 {
set [color:green]$+(%,matrix[,%i,][,%j,])[/color] Item %i %j
inc %j
}
inc %i
}
; running through the matrix and /echo-ing the items
%i = 1
while %i < 11 {
%j = 1
while %j < 11 {
echo -s [color:blue]$eval([/color][color:green]$+(%,matrix[,%i,][,%j,])[/color][color:blue],2)[/color]
inc %j
}
inc %i
}
; cleaning up and finishing
unset %matrix*
echo -sc info /matrix finished
}