Hi!
You can do something like this:
$S{
Borders = {
"top":1,
"bottom":2,
"left":4,
"right":8,
"all": 15
}
if (borderOn){
THIS.borders = Borders.top // it could be THIS.borders = Borders.all or THIS.borders = Borders.top + Borders.bottom
} else {
THIS.borders = 0
}
}