<?xml version="1.0" encoding="UTF-8"?>
<rss xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:taxo="http://purl.org/rss/1.0/modules/taxonomy/" version="2.0">
  <channel>
    <title>topic Re: Expression Not Evaluating. in Discussions</title>
    <link>https://community.jmp.com/t5/Discussions/Expression-Not-Evaluating/m-p/942638#M109524</link>
    <description>&lt;P&gt;Change&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-jsl"&gt;As Column(Expr(Divider))&lt;/CODE&gt;&lt;/PRE&gt;
&lt;P&gt;To&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-jsl"&gt;Expr(NameExpr(As Column(dt, Divider)))&lt;/CODE&gt;&lt;/PRE&gt;
&lt;P&gt;Name Expr() isn't necessary but you will end up with "nicer looking" formulas when you use that.&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-jsl"&gt;Names Default To Here(1); 

dt = open("$SAMPLE_DATA/Big Class.jmp");

div = "weight";
Eval(EvalExpr(
	dt &amp;lt;&amp;lt; New Column("C", Numeric, Continuous, Formula(
		:Height / Expr(NameExpr(AsColumn(dt, div)))
	))
));&lt;/CODE&gt;&lt;/PRE&gt;
&lt;P&gt;Also, you can test your expression evaluations by just running the EvalExpr part instead of the whole Eval(EvalExpr(...&lt;/P&gt;</description>
    <pubDate>Fri, 17 Apr 2026 17:43:08 GMT</pubDate>
    <dc:creator>jthi</dc:creator>
    <dc:date>2026-04-17T17:43:08Z</dc:date>
    <item>
      <title>Expression Not Evaluating.</title>
      <link>https://community.jmp.com/t5/Discussions/Expression-Not-Evaluating/m-p/942626#M109523</link>
      <description>&lt;P&gt;Always mystified by how to use Eval Expr correctly.&amp;nbsp; I have this pop up that asks for a wildcard column name selection and assigns it as "Divider"&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-jsl"&gt;nw = New Window( "Does the Data Contain Experimental Cells?",
	&amp;lt;&amp;lt;Modal,
	V List Box(
		Align( "right" ),
		H List Box(
			Panel Box( "Dividing Column", clb = Filter Col Selector( dt, all ) ),
			Panel Box( "Select Cell Identification Column",
				Lineup Box( N Col( 2 ), Spacing( 5 ),
					Button Box( "Divider", clbY &amp;lt;&amp;lt; Append( clb &amp;lt;&amp;lt; Get Selected ) ),
					clbY = Col List Box( MinItems( 1 ), MaxItems( 1 ), nlines( 1 ) ),
					Button Box( "Remove",
						clbY &amp;lt;&amp;lt; Remove Selected;
						clbEffects &amp;lt;&amp;lt; Remove Selected;
					)
				)
			)
		),
		H List Box(
			Button Box( "OK", yVars = clby &amp;lt;&amp;lt; Get Items( "Column Reference" ) ),
			Button Box( "Cancel" )
		)
	)
);
Try( Divider = yVars[1] );&lt;/CODE&gt;&lt;/PRE&gt;
&lt;P&gt;I then try to evaluate the object in a column formula and whatever combination of Eval(Eval Expr( I use, nothing seems to work.&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-jsl"&gt;If( N Items( yVars ) == 0,
	Data Table( "HIRP" ) &amp;lt;&amp;lt; New Column( "Average Active Power",
		Numeric,
		"Continuous",
		Format( "Best", 12 ),
		Formula(
			If(
				:Heater == "Reader", Col Mean( :HL_R_HEAT, :Heater ),
				Contains( :Heater, "Writer" ),
					Col Mean( :HL_W_HEAT, :Heater )
			)
		)
	),
	Eval(Eval Expr(Data Table( "HIRP" ) &amp;lt;&amp;lt; New Column( "Average Active Power",
		Numeric,
		"Continuous",
		Format( "Best", 12 ),
		Formula(
			If(
				:Heater == "Reader", Col Mean( :HL_R_HEAT, :Heater, As Column(Expr(Divider)) ),
				Contains( :Heater, "Writer" ),
					Col Mean( :HL_W_HEAT, :Heater, :HD_NUM, As Column(Expr(Divider)) )
			)
		)
	)
)));&lt;/CODE&gt;&lt;/PRE&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Fri, 17 Apr 2026 17:35:44 GMT</pubDate>
      <guid>https://community.jmp.com/t5/Discussions/Expression-Not-Evaluating/m-p/942626#M109523</guid>
      <dc:creator>SpannerHead</dc:creator>
      <dc:date>2026-04-17T17:35:44Z</dc:date>
    </item>
    <item>
      <title>Re: Expression Not Evaluating.</title>
      <link>https://community.jmp.com/t5/Discussions/Expression-Not-Evaluating/m-p/942638#M109524</link>
      <description>&lt;P&gt;Change&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-jsl"&gt;As Column(Expr(Divider))&lt;/CODE&gt;&lt;/PRE&gt;
&lt;P&gt;To&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-jsl"&gt;Expr(NameExpr(As Column(dt, Divider)))&lt;/CODE&gt;&lt;/PRE&gt;
&lt;P&gt;Name Expr() isn't necessary but you will end up with "nicer looking" formulas when you use that.&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-jsl"&gt;Names Default To Here(1); 

dt = open("$SAMPLE_DATA/Big Class.jmp");

div = "weight";
Eval(EvalExpr(
	dt &amp;lt;&amp;lt; New Column("C", Numeric, Continuous, Formula(
		:Height / Expr(NameExpr(AsColumn(dt, div)))
	))
));&lt;/CODE&gt;&lt;/PRE&gt;
&lt;P&gt;Also, you can test your expression evaluations by just running the EvalExpr part instead of the whole Eval(EvalExpr(...&lt;/P&gt;</description>
      <pubDate>Fri, 17 Apr 2026 17:43:08 GMT</pubDate>
      <guid>https://community.jmp.com/t5/Discussions/Expression-Not-Evaluating/m-p/942638#M109524</guid>
      <dc:creator>jthi</dc:creator>
      <dc:date>2026-04-17T17:43:08Z</dc:date>
    </item>
    <item>
      <title>Re: Expression Not Evaluating.</title>
      <link>https://community.jmp.com/t5/Discussions/Expression-Not-Evaluating/m-p/942649#M109525</link>
      <description>&lt;P&gt;Needed a small tweak but worked, Thanks&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-jsl"&gt;If( N Items( yVars ) == 0,
	Data Table( "HIRP" ) &amp;lt;&amp;lt; New Column( "Average Active Power",
		Numeric,
		"Continuous",
		Format( "Best", 12 ),
		Formula(
			If(
				:Heater == "Reader", Col Mean( :HL_R_HEAT, :Heater ),
				Contains( :Heater, "Writer" ),
					Col Mean( :HL_W_HEAT, :Heater )
			)
		)
	),
	Eval(Eval Expr(Data Table( "HIRP" ) &amp;lt;&amp;lt; New Column( "Average Active Power",
		Numeric,
		"Continuous",
		Format( "Best", 12 ),
		Formula(
			If(
				:Heater == "Reader", Col Mean( :HL_R_HEAT, :Heater, Expr(NameExpr(As Column( Divider))) ),
				Contains( :Heater, "Writer" ),
					Col Mean( :HL_W_HEAT, :Heater, :HD_NUM, Expr(NameExpr(As Column( Divider))) )
			)
		)
	)
)));&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Fri, 17 Apr 2026 18:04:27 GMT</pubDate>
      <guid>https://community.jmp.com/t5/Discussions/Expression-Not-Evaluating/m-p/942649#M109525</guid>
      <dc:creator>SpannerHead</dc:creator>
      <dc:date>2026-04-17T18:04:27Z</dc:date>
    </item>
    <item>
      <title>Re: Expression Not Evaluating.</title>
      <link>https://community.jmp.com/t5/Discussions/Expression-Not-Evaluating/m-p/942675#M109530</link>
      <description>&lt;P&gt;Jarmo&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;I have something that works now but I don't understand why it works.&amp;nbsp; Is there somewhere that gives a clear description of how the evaluation methodology should be employed?&amp;nbsp; Hoping to spend less time on here searching for answers.&lt;/P&gt;</description>
      <pubDate>Fri, 17 Apr 2026 19:40:21 GMT</pubDate>
      <guid>https://community.jmp.com/t5/Discussions/Expression-Not-Evaluating/m-p/942675#M109530</guid>
      <dc:creator>SpannerHead</dc:creator>
      <dc:date>2026-04-17T19:40:21Z</dc:date>
    </item>
    <item>
      <title>Re: Expression Not Evaluating.</title>
      <link>https://community.jmp.com/t5/Discussions/Expression-Not-Evaluating/m-p/942676#M109531</link>
      <description>&lt;P&gt;&lt;LI-MESSAGE title="Session 9: Advanced JSL" uid="680045" url="https://community.jmp.com/t5/JMP-Scripters-Club-Discussions/Session-9-Advanced-JSL/m-p/680045#U680045" discussion_style_icon_css="lia-mention-container-editor-message lia-img-icon-forum-thread lia-fa-icon lia-fa-forum lia-fa-thread lia-fa"&gt;&lt;/LI-MESSAGE&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;A href="https://www.jmp.com/support/help/en/19.0/#page/jmp/advanced-expressions-macros-and-lists.shtml#ww339382" target="_blank" rel="noopener"&gt; Scripting Guide &amp;gt; Programming Methods &amp;gt; Advanced Expressions, Macros, and Lists&lt;/A&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;A href="https://www.jmp.com/content/dam/jmp/documents/en/newsletters/jmper-cable/26_winter_2010.pdf" target="_blank" rel="noopener"&gt;Morgan, J. (2010). “Expression Handling Functions: Part I.” JMPer Cable 26:15–19.&lt;/A&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Fri, 17 Apr 2026 19:51:43 GMT</pubDate>
      <guid>https://community.jmp.com/t5/Discussions/Expression-Not-Evaluating/m-p/942676#M109531</guid>
      <dc:creator>jthi</dc:creator>
      <dc:date>2026-04-17T19:51:43Z</dc:date>
    </item>
  </channel>
</rss>

