You can conditionally apply a border to your text object based on your condition.
Right click on the text object and choose 'Format Text'.
In the format editor window that will pop up, click on the Border Tab and you will find X+2 buttons across from each of the Line Style (Top, Bottom, Left, Right). One at a time, click into each X+2 button which will take you into the Format Formula Editor window where you can put your condition formula. Your condition formula will need to be and If...Then...Else format such as:
If Condition Then LineStyle Else Alternative LineStyle
Where you will insert your Boolean condition above where it says Condition and then choose the line style you wish to use whether or not the condition evaluates to true or not.
You will find a Functions List when you are in the Format Formula Editor window and in that list should be a folder called 'Line Style Constants' or something close to that. You can choose the linestyle, or none as appropriate, by double clicking those into your If...Then...Else statement.
Hope this helps.
MRudolph