Jump to content

Conditional Styles and variable setting


ed4becky

Recommended Posts

I have a conditional style that sets the background to red if a column field is above a certain threshold. Works fine.

 

But I would like to generalize it -

 

right now I have a style customized for each column (if $F{col1} < 0, if $F{col2} < 0…)

 

How can I set a variable $V{temp} = $F(col1) before evauluating the style for col1, then $V(temp) = $F{col2) before setting the style for column 2, etc,

 

So that I can generalize the consition to if($V{temp} < 0…

 

Where would the setting of the $V value be put? I need it to potentially be reset as I process each (of 13) columns.

 

Ed

Link to comment
Share on other sites

  • 8 months later...
  • Replies 3
  • Created
  • Last Reply

Top Posters In This Topic

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now

×
×
  • Create New...