cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 
  • JMP will suspend normal business operations for our Winter Holiday beginning on Wednesday, Dec. 24, 2025, at 5:00 p.m. ET (2:00 p.m. ET for JMP Accounts Receivable).
    Regular business hours will resume at 9:00 a.m. EST on Friday, Jan. 2, 2026.
  • We’re retiring the File Exchange at the end of this year. The JMP Marketplace is now your destination for add-ins and extensions.

Discussions

Solve problems, and share tips and tricks with other JMP users.
Choose Language Hide Translation Bar
jueefo
Level II

Reports conditional format rule in script

Hi,

I am trying to use a variable as value with reports and conditional formatting rules, please see the example below. I cannot get this to work. My best guess is to use eval() the get this work, but no success so far. Has anyone solved this kind of issue?

 

limit = 10;

Preferences(
	Conditional Formatting Rules(
		RuleSet(
			RuleName( "Red limit" ),
			GreaterThan( Value( limit ), Inclusive( 0 ), Format( Text Color( "Red" ) ) )
		)
	)
);

JMP version 15.2.0.

1 ACCEPTED SOLUTION

Accepted Solutions
jthi
Super User

Re: Reports conditional format rule in script

Insert one expression into another using Eval Insert, Eval Expr, Parse, and Substitute might help

 

limit = 10;

Eval(EvalExpr(Preferences(
	Conditional Formatting Rules(
		RuleSet(
			RuleName( "Red limit" ),
			GreaterThan( Value(Expr(limit)), Inclusive( 0 ), Format( Text Color( "Red" ) ) )
		)
	)
)));

 

-Jarmo

View solution in original post

2 REPLIES 2
jthi
Super User

Re: Reports conditional format rule in script

Insert one expression into another using Eval Insert, Eval Expr, Parse, and Substitute might help

 

limit = 10;

Eval(EvalExpr(Preferences(
	Conditional Formatting Rules(
		RuleSet(
			RuleName( "Red limit" ),
			GreaterThan( Value(Expr(limit)), Inclusive( 0 ), Format( Text Color( "Red" ) ) )
		)
	)
)));

 

-Jarmo
jueefo
Level II

Re: Reports conditional format rule in script

Thanks, great! It works, now I will try to understand why with the link you posted.

Recommended Articles