Hi!
By using the script as the content of TextItem for example
Like this
$S{
if (your_condition)
THIS.borders=15;
"simple_text";
}
the Enum of borders is
enum BorderSide {
NoLine = 0,
TopLine = 1,
BottomLine = 2,
LeftLine = 4,
RightLine = 8,
AllLines = 15
};